Sylvain,

Have a look at the "custom tool" feature in zim. You can provide special
codes to get certain arguments to the command.

Btw. I believe Josh already got it to work as a bash script.

Regards,

Jaap



On Tue, Nov 5, 2013 at 11:13 AM, Sylvain Viart <launch...@ledragon.net>wrote:

> Hi,
>
> Le 30/10/2013 08:52, Jaap Karssenberg a écrit :
>
>  bash -c 'for i in %d/*.JPG; do echo "{{./$i?width=700}}" >> %s; done
>>
>
> Could you put, some lines of what output you expect?
>
> %d and %s and, even %letter, is not a bash feature…
>
> What does this %% means to you?
>
> A small script (read: save the commands into a text file) will do the
> trick easily, hopefully. :-)
>
> Of course you can use any other programming language to accomplish the
> job, are you under GNU/linux or windows?
>
> As a teaser, here's the command which list all the jpg of the current dir:
>
> for f in `ls | grep -i JPG`; do echo "{{./$f?width=700}}"; done
>
> it ouputs:
>
> {{./planche-photo.jpg?width=700}}
>
> Note that:
>
> ls | grep -i JPG
>
>
> is a sub command which actually lists the jpg file with case insensitive,
> under GNU/Linux it's matter.
>
> Regards,
> Sylvain.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~zim-wiki
> Post to     : zim-wiki@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~zim-wiki
> More help   : https://help.launchpad.net/ListHelp
>
_______________________________________________
Mailing list: https://launchpad.net/~zim-wiki
Post to     : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp

Reply via email to