I implemented exactly this functionality using MatchTagsPlugin [1] and
CheckboxPlugin [2] as follows:

<<matchTags "[x(%0|done){}{}{}][[%0]]" "" task && !done && !archive>>

You could simply change the tag "done" to "completed" and replace my
tag criteria with your own.

[1] http://www.TiddlyTools.com/#MatchTagsPlugin
[2] http://www.TiddlyTools.com/#CheckboxPlugin



> On Nov 4, 9:51 am, Mad Scientist Jr <[email protected]>
> wrote:
>
> > I am looking to use matchTags and toggleTag to generate a numbered
> > list of unfinished tasks, with a checkbox next to each task that if
> > checked will add the 'complete' tag to that task.
>
> > By itself, the matchTags macro works, for example
> > <html><font size="1"><matchTags inline "# %0>>" "\n" sort:+myfield
> > (task AND mycategory AND someothertag) AND !(complete) >></font></
> > html>
>
> > Also, by itself, the toggleTag macro works, for example:
> > <<toggleTag complete 'my task tiddler'>>
>
> > However when I try embedding toggleTag inside matchTags, for example:
>
> > <html><font size="1"><matchTags inline "# <<toggleTag complete '%0'>>"
> > "\n" sort:+myfield (task AND mycategory AND someothertag) AND !
> > (complete) >></font></html>
>
> > It doesn't work, I am seeing this output:
>
> > ""
> > " sort: +myfield (task AND mycategory AND someothertag) AND !
> > (complete)>>
>
> > Does anyone know if & how to make it work?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to