[tw5] Re: A more elegant filter?

2021-07-14 Thread TW Tones
Ah Yes, The Regex approach. One day I must bit the bullet and learn regex Will this method deal with tags containing spaces or if there are accidental partial matches eg mytodo vs todo etc... I would assume it does but that "fact" is invisible if you don't understand regex. Can you get any

[tw5] Re: A more elegant filter?

2021-07-14 Thread PMario
Try this <$set name=pattern value="^project$|^todo$"> <$list filter="[all[current]search:tags:regexp]"> found <> -m -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an

[tw5] Re: A more elegant filter?

2021-07-14 Thread TW Tones
In the previous filter examples it is more readable to use [tags[]] which is equivalent to [enlist(!!tags}] {{{ todo project :intersection[tags[]] +[limit[1]] }}} Tones On Wednesday, 14 July 2021 at 18:09:51 UTC+10 TW Tones wrote: > Ok, the writers block has passed. Here I use the intersection

[tw5] Re: A more elegant filter?

2021-07-14 Thread TW Tones
Ok, the writers block has passed. Here I use the intersection filter run prefix available 5.1.23+ *Perhaps you still have a more elegant solution?* Here I test and illustrate the filters using the transclude filter format, but they could be used in a list widget filter. Provide a list of named