`<$list 
filter="[field:tags[technical_todo]]"><<currentTiddler>><br></$list>`

I'd like to add: this works beautifully for my use case as described. I'd 
like to extend the use case however, and I'm not sure this filter works 
as-is.

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?

On Tuesday, September 21, 2021 at 4:49:17 PM UTC-4 [email protected] wrote:

> That *is* short, sweet and nice.  I do enjoy.
>
> However, am I correct in saying that this only works if tags are one word 
> or CamelCase words?
>
> *(I always use spaces in my multi-word tags because I find that easier to 
> read.  And they wind up double-bracketed by TiddlyWiki in the tags fields.)*
>
> On Tuesday, September 21, 2021 at 5:24:41 AM UTC-3 Eric Shulman wrote:
>
>> On Monday, September 20, 2021 at 7:38:43 PM UTC-7 [email protected] 
>> wrote:
>>
>>> ...is there a shorthand to only output those tiddlers with _exactly_ the 
>>> one tag I'm requesting
>>>
>>
>> Even though the "tags" field contains a list of tiddler titles, it is 
>> also just a simple text value and you can use the `fields:tags[...]` filter 
>> to look for a specific literal value in the field, without it as a list.
>>
>> `<$list 
>> filter="[field:tags[technical_todo]]"><<currentTiddler>><br></$list>`
>> will give the results you want, without a lot of messy "counting" and 
>> such.
>>
>> 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/6d017458-c822-4d30-b5dc-ff185a1eb653n%40googlegroups.com.

Reply via email to