zim-wiki team mailing list archive
-
zim-wiki team
-
Mailing list archive
-
Message #02593
Re: Using bash scripts as custom tools
Le 05/11/2013 12:53, Jaap Karssenberg a écrit :
Have a look at the "custom tool" feature in zim. You can provide
special codes to get certain arguments to the command.
Oh great! Thanks pointing me that's feature, I already love it…
snippet from the doc…
When defining a command, you can use the following parameters to
supply the external program with some context information from within zim:
*%f* for page source as a temporary file
*%d* for the attachment <./Attachments.html> directory of the
current page
*%s* for the real page source file (if any)
*%n* for the notebook location (file or folder)
*%D* for the document root (if any)
*%t* for the selected text or word under cursor
So those variable are evaluated by Zim, not by bash.
As you proposed in your first answer. It makes sens now.
Is this doc (Zim's manual) also available on-line?
so we can also put easy link to it. :-)
Btw. I believe Josh already got it to work as a bash script.
Yep, I experienced some mail address confusion and my reply was never
posted in fact. :-\
Regards,
Sylvain.
Follow ups
References