← Back to team overview

zim-wiki team mailing list archive

Re: Custom tools feature & possible cut/paste bug

 

On Fri, Mar 1, 2013 at 3:36 PM, Mark Hughes (Zim mailing list)
<mark@xxxxxxxxxxxxxx> wrote:
> I just looked at Custom Tools and would like to check this isn't supported
> and offer it as a suggestion:
>
> Additional tool parameter %x - temporary file containing selection (wiki
> format)
> I would also like a checkbox: "replace selection with stdout output". My use
> case is to be able to pipe a selection through sed/awk/sort etc For example:
> "sort %x" Execution should leave the selection active (but with processed
> contents) and not scroll the page. Currently the page gets scrolled to the
> end.
>
> Also, I think the existing code is a little flakey as when I accidentally
> executed a command that used the %f parameter but did nothing to the file,
> the content formatting was slightly modified. I had just copied and pasted a
> small selection to test, which may have left some unseen wiki formatting in
> an odd place, because when I ran the command a line of normal text became
> heading 2 format. I think this was the first line of my cut/paste, and the
> cut probably began underneath a line which was header 2 format (Zim 0.59 on
> Windows 7).

I have this already on my list, so most likely there is already an
open request in the bug tracker. If not, please open one there.

Regards,

Jaap


References