zim-wiki team mailing list archive
-
zim-wiki team
-
Mailing list archive
-
Message #04517
Re: Clearing check lists on a page
The same could be achieved with selecting the desired entries and then
using the already implemented shortcut to clear all checkboxes.
Gordon Zano <gordon.zano@xxxxxxxxx> schrieb am Mi., 5. Juli 2017 um
14:52 Uhr:
> If anyone has a need to repeatedly clear the check lists on a page without
> having to mouse click through them all, this may help.
>
> Set up a Custom Tool similar to:
> Command: /<pathToScriptFile>/*clear-checkboxes-thisPage.sh %s*
>
>
> clear-checkboxes-thisPage.sh contains:
>
> #!/bin/bash
>
> # Zim clear checkboxes on current page. 2017-07-05
>
> # $1 input should be zim variable %s
>
> # Search for [*] and [x], and replace with [ ].
> sed --in-place -e 's/\[\*\]/\[ \]/g' -e 's/\[\x\]/\[ \]/g' $1
>
>
> If you just want to clear a selection on a page, then it may be useful
> with the other Zim parameter %T: the selected text including wiki
> formatting. But I have not tested this.
>
> --
> Gordon
> _______________________________________________
> Mailing list: https://launchpad.net/~zim-wiki
> Post to : zim-wiki@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~zim-wiki
> More help : https://help.launchpad.net/ListHelp
>
References