\define filterExpression() {{$(searchTiddler)$}} +[limit[$(resultsLimit)$]]
\define filterSearch()
<$wikify name="transcludedFilterExpression" text=<<filterExpression>> >
<$list filter=<<transcludedFilterExpression>> template="$:/core/ui/ListItemTemplate"/>
</$wikify>
\end
\define regularSearch(scope)
//<small>{{$:/language/Search/Matches/Title}}</small>//
<$list filter="[$scope$search:title{$(searchTiddler)$}sort[title]limit[$(resultsLimit)$]]" template="$:/core/ui/ListItemTemplate"/>
//<small>{{$:/language/Search/Matches/All}}</small>//
<$list filter="[$scope$search{$(searchTiddler)$}sort[title]limit[$(resultsLimit)$]]" template="$:/core/ui/ListItemTemplate"/>
\end
\define searchResultList()
<$list filter="[{$(searchTiddler)$}prefix[[]]">
//''<small>{{$:/language/Search/Filter/Caption}}</small>''//
<<filterSearch>>
</$list>
<$list filter="[{$(searchTiddler)$}prefix[$:/]]">
//''<small>{{$:/language/Search/System/Caption}} + {{$:/language/Search/Shadows/Caption}}</small>''//
<<regularSearch "all[system+shadows]">>
</$list>
<$list filter="[{$(searchTiddler)$}!prefix[[]!prefix[$:/]]">
<<regularSearch "!is[system]">>
</$list>
\end
<$vars resultsLimit="250">
<<searchResultList>>
</$vars>
What do you think? Is it usefull enough to let it in the core?Regular search (nothing new, just want to show the current behaviour): https://i.imgur.com/ovBjJeV.pngFind system + shadow tiddlers: https://i.imgur.com/yMTWt5d.pngSearch by filters: https://i.imgur.com/xIXtmn6.png
Somewhere down the line, it would be great if TW could save your searches (like in other search engines) so you could quickly go back to a prior search.
Honestly, I did not try* your solution but looked at your screenshots. ... I am happy with my own plugin Simple Search :
- Counting results: Your filter search shows a counter with zero results (instead of 7), system & shadows counts 6 instead of 7.
- Filter search: How would I search for (e.g. standard) tiddlers containing a certain filter (as text)?
- Search mode: Is it possible to switch search mode somehow like in Advanced Search?
- Hints on filter errors: I appreciate them and would miss them ...
Advanced Search in TW is just one or two clicks/taps or key strokes away from standard TW search. So I am sorry to say, this would not be an improvement for me. Just advanced features merged into a simple search, but with less control and less meta info.
I think, this should be a plugin. We do have the Advanced search, which has an interface, where it is clear, what you get.
There seems to be a big wave at NOT changing the way TW works
Very nice, once again.
Thanks
I plan to implement a similar behaviour, but not by puting buttons on every list item, so I do not release this (combined-search-for-tonym.html) as a plugin.