I tried to experiment with
`[enlist{!!tags}sort[]join[,]match[playground,rust,test,two words]]` and
uploaded the results. `[enlist{!!tags}sort[]join[,]]` returns the same
thing as `[enlist{!!tags}sort[]join[,]match[playground,rust,test,two
words]]` from my testing, so I'm not exactly sure what the match is for.I'm not sure how to combine it with another filter to actually return a list of "these tiddlers with exactly these 4 tags". Is there a way to do "these tiddlers with exactly these 4 tags and nothing else" filter without using a variable (so I can put it into advanced search)? On Tuesday, September 21, 2021 at 11:29:16 PM UTC-4 Eric Shulman wrote: > On Tuesday, September 21, 2021 at 7:41:06 PM UTC-7 [email protected] > wrote: > >> I have 10 tiddlers tagged with both `playground` and `rust` >> (`[tag[rust]tag[playground]]` returns them all, but _pretend_ that I could >> have tiddlers with more than just two tags). In advanced search, >> `[field:tags[rust playground]]` returns 3 matches, and >> `[field:tags[playground rust]]` returns 7 matches. Meaning that Tiddlywiki >> knows the order that I put tags in even though they are sorted when >> displayed in the browser. Is there a way to return "exactly these 2 or 3 >> etc" tags without having to try all permutations of tags? >> > > Let's assume you have FOUR tags: "rust", "playground", "two words", and > "test" > > Try this filter: > `[enlist{!!tags}sort[]join[,]match[playground,rust,test,two words]]` > > Notes: > * If a tag contains a space, it is stored with square brackets, e.g., > `[[two words]]` > * enlist{!!tags} gets the individual tags as separate items, and any > square brackets are removed (but "two words" will still be ONE tag) > * next, sort them alphabetically, in ascending order > * then join the tags with a comma as a delimiter > * and match with literal text containing commas > > Let me know how it goes. > > enjoy, > -e > -- 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 to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/f6c21926-6a5e-4c8f-870d-dc7edbe5f4f3n%40googlegroups.com.
Test Tiddler.json
Description: application/json

