Shiraz Node explorer - Filtering the results

Hello all,

I am playing around with Node explorer from Mohammed’s Shiraz plugin. I want to edit the filter of which tiddlers are shown in the table. All tiddlers with the tag “Foo” should not show up in the table of other tiddlers.

Now there is an main filter, in the code, But if you adjust the second line to [all[current]!tag[Foo]links[]], then it does work when the tiddler has only the tag “Foo”. But when it has multiple tags then it would still show up inside the node explorer of other tiddlers. How would I need to adjust the filter to make sure tiddlers with multiple tags would also be included?

\define mainFilter()
[all[current]links[]] 
[all[current]backlinks[]]
[all[current]tagging[]]
[all[tiddlers]regexp[^$(currentTiddler)$\s*/]]
[all[tiddlers]regexp[^$(currentTiddler)$\s*:]]
[subfilter<transclusion-filter>]
[subfilter<back-transclusion-filter>]
:and[!is[system]]
\end

Try adding this at the very end of the whole filter (on a line by itself)

-[tag[foo]]
1 Like

Thank you! That worked : )

Also look closely at this previous filter it reads;

  • The current tiddler title
  • Discard if !tag[Foo]
  • If tag foo get links

So perhaps that would flag the issue?

  • Basically you get all tiddlers than may meet your requirement’s then eliminate the exceptions as Eric shows.