how to search ignore the path ?

60 views
Skip to first unread message

Zhe Lee

unread,
Aug 26, 2020, 8:20:53 AM8/26/20
to TiddlyWiki

Eric Shulman

unread,
Aug 26, 2020, 8:58:29 AM8/26/20
to TiddlyWiki
On Wednesday, August 26, 2020 at 5:20:53 AM UTC-7, Zhe Lee wrote:
I search note in my wiki 
here is my result: 
What I need is just the last one. I want the search just match the title, how to set it? 

the search field in the sidebar will result in "a list of all the tiddlers that contain that text"

To "obtain a list of all tiddlers that meet the specific criteria", use the $:/AdvancedSearch, Filter tab:

1) Click on the magnifying glass next to the sidebar search input field
2) Select the "Filter" tab
3) Enter filter syntax: [suffix[Note]]

-e

Zhe Lee

unread,
Aug 26, 2020, 8:26:44 PM8/26/20
to TiddlyWiki
Thank you. Done

TW Tones

unread,
Aug 26, 2020, 8:33:55 PM8/26/20
to TiddlyWiki
Zhe,

Further to Erics interactive search you can use a filter like this;

[search:title[note]]

The contains operator is not the one, because it searches for a title in a list, search is for a string in a field, in this case limited to title.

Regards
Tony

Eric Shulman

unread,
Aug 26, 2020, 8:50:04 PM8/26/20
to TiddlyWiki
On Wednesday, August 26, 2020 at 5:33:55 PM UTC-7, TW Tones wrote:
Further to Erics interactive search you can use a filter like this;
[search:title[note]]
The contains operator is not the one, because it searches for a title in a list, search is for a string in a field, in this case limited to title.

The above search would NOT give the results they are after.  Rather, it would yield the same results as the generic sidebar search...
it would find ALL tiddlers whose title includes the indicated text ("note") *anywhere* in the title.  They specifically said they did NOT
want that result, but rather only match the last resulting title, "HowToNote", for which the [suffix[Note]] filter is the correct solution.

-e

TW Tones

unread,
Aug 26, 2020, 10:15:31 PM8/26/20
to TiddlyWiki
Eric,

My bad, but if you look at the example, and no search string specified my example is correct, if searching for "note" but only wanting tiddlers containing note in the title.

This is because the default search also searches more than the title.

Actually they look like paths to files rather than typical tiddlers.

Regards
Tony
Reply all
Reply to author
Forward
0 new messages