← Back to team overview

zim-wiki team mailing list archive

Re: Custom tool stdin

 

On Tue, Apr 13, 2010 at 8:36 AM, Svenn Are Bjerkem
<svenn.bjerkem@xxxxxxxxxxxxxx> wrote:
> just wondering how I can set up custom tools to present a selected
> piece of text in zim to stdin of an external tool.
>
> mytool %t does not work as expected as %t will be interpreted as
> command line arguments instead of stdin.

Probably you will need a small shell script to mediate.

E.g.

  #!/bin/bash
  echo $1 | myscript

and use this shell script as the custom tool.

(For windows a similar bat script can be written.)

Regards,

Jaap



References