[tw5] Re: List Widget Filters "Only" operator

2021-07-29 Thread TW Tones
Mario, Yes, especially with larger tiddlywiki (or even if you think it my be one day), it is best to reduce the set as quickly as possible to a smaller list. Tones On Wednesday, 28 July 2021 at 07:27:24 UTC+10 PMario wrote: > On Tuesday, July 27, 2021 at 2:26:23 PM UTC+2 TW Tones wrote: > >

[tw5] Re: List Widget Filters "Only" operator

2021-07-27 Thread PMario
On Tuesday, July 27, 2021 at 2:26:23 PM UTC+2 TW Tones wrote: [all[current]tags[]count[]match[2]then] +[tag[Tag1]] > +[tag[Tag2]] > Tony, Your filter uses all tiddlers that have 2 tags and starts to test them. I did think about this: <$set name="condition"

[tw5] Re: List Widget Filters "Only" operator

2021-07-27 Thread TW Tones
A thought! untested. If you could count the tags and they do not equal two then it can not have two tags. Then say [tag[Tag1]] +[tag[Tag2]] [all[current]tags[]count[]match[2]then] +[tag[Tag1]] +[tag[Tag2]] Above untested The store the above in a tiddler as I suggested in my first reply, then

[tw5] Re: List Widget Filters "Only" operator

2021-07-26 Thread PMario
Hi John, If you found a solution, it would be nice if you share it. If it still causes headaches, let us know. -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 email

[tw5] Re: List Widget Filters "Only" operator

2021-07-26 Thread John McDonnell
Thanks everyone, useful information. @PMario - I'll take a look at that and: 1) Try and apply the example as written for a single tag to see if I can get it working 2) Try and extend to two tags It looks like it should be straightforward enough and I'll be able to add a new tool to my belt.

[tw5] Re: List Widget Filters "Only" operator

2021-07-25 Thread PMario
UUPS, I didn't read your OP good enough, because my solution works for 1 tag only. ... BUT it should contain enough info to figure out, how the filter should look like for your problem;) -m On Monday, July 26, 2021 at 7:39:12 AM UTC+2 PMario wrote: > Hi, > > In TW you sometimes need to think

[tw5] Re: List Widget Filters "Only" operator

2021-07-25 Thread PMario
Hi, In TW you sometimes need to think different, because filter sets can dynamically change as you found out. <$set name="condition" value="[tags[]count[]match[1]]"> <$list filter="[tag[a]filter]"/> In this example, the first filter tag[a] gets all tiddlers that have a tag a. The second

[tw5] Re: List Widget Filters "Only" operator

2021-07-25 Thread TW Tones
Hi johnangus... First you could place [tag[Tag1]tag[Tag2]!tag[Tag3]!tag[Tag4]] in a tiddler or a macro eg; $:/config/tag-filter then reference is as {{$:/config/tag-filter}} as the whole filter or "... {$:/config/tag-filter} ..." within a filter. Alternatively in a tiddler tagged