Display tiddlers corresponding to a list of tags

118 views
Skip to first unread message

Didier Bretin

unread,
May 8, 2018, 10:53:35 AM5/8/18
to TiddlyWiki
Hello,

Is there a simple way to display tiddlers which correspond to a list of tags ?
For example if I have the following tiddlers:
- Ta (tags : T1, T2)
- Tb (tags : T1)
- Tc (tags : T2, T3)
- Td (tags : T1, T2, T3)

And I want to display all tiddlers with tags : T1 and T2 and not T3.

How can I do this ?

Regards.

Diego Mesa

unread,
May 8, 2018, 11:22:55 AM5/8/18
to TiddlyWiki
You need to use tiddlywiki filters:


A filter that accomplishes what you want is:

[tag[T1]tag[T2]!tag[T3]]

If you type that in the "fitlers" tab of the advanced search tiddler, you will see a list of the tiddlers you want.

If you want to display these results in another tiddler, there is the very handy list-links macro:


Which you can use like this:

<<list-links "MY FILTER HERE">>

So for you, it would look like this:

<<list-links "[tag[T1]tag[T2]!tag[T3]]">>

Jed Carty

unread,
May 8, 2018, 11:26:41 AM5/8/18
to TiddlyWiki
Like this:

[tag[T1]tag[T2]!tag[T3]]

filters in tiddlywiki are very similar to set operations. I made some notes about translating logic statements into filters that may be useful here https://ooktech.com/jed/ExampleWikis/FilterLogicExamples/

Diego Mesa

unread,
May 8, 2018, 11:29:47 AM5/8/18
to TiddlyWiki
Thats a great resource Jed! Tobias also has (a more advanced) one:

Didier Bretin

unread,
May 8, 2018, 11:40:12 AM5/8/18
to TiddlyWiki
Thanks Diego and Jed for your answers. It's exactely what I was searching.

Regards.

TonyM

unread,
May 8, 2018, 7:57:16 PM5/8/18
to TiddlyWiki
Nice work Jed putting it in terms of logic.

TonyM

unread,
May 8, 2018, 11:01:11 PM5/8/18
to TiddlyWiki
Jed,

AM i Missing something or have you some typos in your page at  https://ooktech.com/jed/ExampleWikis/FilterLogicExamples/

You say
OperationSymbol
A and BA+B
A or BA.B

But then 
 And Begins
A.B

And Or begins

A+B 

It may not be correct under NOR and XOR but I am seeking clarification before I try and work that out.

Thanks 
Tony

On Wednesday, May 9, 2018 at 1:26:41 AM UTC+10, Jed Carty wrote:

Jed Carty

unread,
May 9, 2018, 3:30:49 AM5/9/18
to TiddlyWiki
Oh yes, and and or are backwards in the table. Now I need to figure out where I have the original so I can upload a corrected version. I just did a quick check and it looks like it is consistent everywhere else and just the table has it backwards.

Anthony Muscio

unread,
May 9, 2018, 3:46:12 AM5/9/18
to TiddlyWiki
Thanks

For some a logical model is a great way to learn TiddlyWIkis filter.

Regards
Tony

Anthony Muscio

On 9 May 2018 at 17:30, Jed Carty <inmy...@gmail.com> wrote:
Oh yes, and and or are backwards in the table. Now I need to figure out where I have the original so I can upload a corrected version. I just did a quick check and it looks like it is consistent everywhere else and just the table has it backwards.

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/JfPK5sQAeTA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/7d0c0841-4da8-4c6b-b1b8-3c9c1e1ff68d%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages