Sidebar search question

Hi,

i want to modify the sidebar search results to omit showing certain tiddlers , where can i find the tiddler or the filter that that manages the Sidebar search

see $:/core/ui/DefaultSearchResultList

The field first-search-filter defines the filter for listing “title matches”.
The field second-search-filter defines the filter for “all matches” (title, text, or tags).

To exclude certain titles you could do the following:

Change first-search-filter from:

[!is[system]search:title<userInput>sort[title]limit[250]]

to

[!is[system]search:title<userInput>] -[subfilter{OmitSearchResults}] +[sort[title]limit[250]]

and change second-search-filter from:

[!is[system]search<userInput>sort[title]limit[250]]

to

[!is[system]search<userInput>] -[subfilter{OmitSearchResults}] +[sort[title]limit[250]]

Then, create a new tiddler named “OmitSearchResults” whose text field contains filter syntax to match titles you want to omit from the search results. For example, suppose you want to omit “SomeTiddler”, “AnotherTiddler”, and any tiddler beginning with “Hidden”… then you could write:

SomeTiddler AnotherTiddler [prefix[Hidden]]

enjoy,
-e

1 Like

Anbother approach is to leave the standard search alone and add a tab containing the limited search see Customising search results and use @EricShulman’s guidance there as well.

@EricShulman @TW_Tones Thanks both , i actually just went ahead and modified the filter :slight_smile: its just a group of tiddlers that i never want to see again but cant delete

thank you for you help:)