Any Command Palette users know how to change the default filter for search results?

69 views
Skip to first unread message

si

unread,
May 11, 2021, 2:24:36 PM5/11/21
to TiddlyWiki
Not sure if this plugin is being updated, but its still alive here:

I'm trying to use a custom filter for the search results of this plugin. Specifically I am using Streams and want to exclude all non-root tiddlers from the normal search.

For example TiddlyWiki's sidebar search uses the following filter by default: [!is[system]search:title<userInput>sort[title]limit[250]], which I have changed to this: [!is[system]search:title<userInput>sort[title]limit[250]!regexp[^.*/\d{17}$]].

I would like to do something similar with Command Palette but I'm struggling to figure it out. Any users of this plugin out there who know how to do this?

Saq Imtiaz

unread,
May 12, 2021, 2:41:42 AM5/12/21
to TiddlyWiki
I have no idea about Command Palette, but you may want to use a filter like the following for the sidebar search:

[!is[system]search:title<userInput>sort[title]get-stream-root:matchtitles[]limit[250]]

This will allow the individual nodes to be searchable but only show their root tiddlers in the search, as long as the node titles have the format root-tiddler/*

Saq Imtiaz

unread,
May 12, 2021, 3:10:37 AM5/12/21
to TiddlyWiki

si

unread,
May 12, 2021, 7:24:14 AM5/12/21
to TiddlyWiki
>>> [!is[system]search:title<userInput>sort[title]get-stream-root:matchtitles[]limit[250]]

Yeah this is way better thank you.
That's it! Thanks a lot for your help.
Reply all
Reply to author
Forward
0 new messages