What's the filter to select all tiddlers that have a partial matching tag

I have several tiddlers that are tagged with following tags

  1. python oop
  2. python json
  3. python lectures

Which filter can I use to select all the tiddlers that have python in the tag?

When I use [tag[python]] it does not select anything, using [tag[python oop]] select only those that have the specific “python oop” tag. I want to do a partial match on the tags.

<$list filter="[all[tiddlers]]:filter[tags[]prefix[python]]"/>

The first filter run finds all tiddlers. (Make this ‘tiddlers+shadows’ if you have shadow tiddlers also.) The filter filter run expression then looks at each tiddler, extracts the tags, and finds any with prefix python. If there is a result, then the original tiddler is output.

1 Like

Or (a bit more old-school):

[tags[]prefix[python]tagging[]

This will get all tags (cached operation), find the ones starting with “python” and then select all tiddlers with these tags.
Might be a bit faster for large wikis, though I haven’t checked.
Have a nice day
Yaisog

2 Likes
<$list filter="[all[]search:tags[python]]">

</$list>

This also shows tiddlers with tag like OOP in Python. It searches python in tags field in a case insensitive manner

1 Like