The sidebar of my wiki contains a list of tags that can be filtered through 
the search bar. The problem is that the tag list is refreshed after typing 
each character in the search bar, which is slow (it shows up to 200 tags). 
To make it work quicker, I've written a condition that looks at whether the 
search bar bar is visible: if so, it hides the tag list so it does not have 
to update it.

<$list filter="[prefix[$:/state/popup/search-dropdown]] [[The other is not 
exists]] +[first[]!is[system]]">

Because of `!is[system]`, the state tiddler will never be on the output, 
only the other title if it's the first (if the state tiddler exists, then 
the other title is in the second position).

The filter works with qualified titles, so it can be used with any state 
tiddler.


-- 
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 post to this group, send email to [email protected].
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/6a7341b1-d674-4c3b-a59d-8b458f2edbe9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to