What do you think? Is this good enough to be in the core?

Simple search (nothing new, just referencing the current 
behaviour): https://i.imgur.com/rK0UcDr.png
Search in system + shadow tiddlers: https://i.imgur.com/si83OlL.png
Search by filter: https://i.imgur.com/nLsRKSf.png

To achieve this behaviour, modify $:/core/ui/DefaultSearchResultList to 
this:

\define filterExpression() {{$(searchTiddler)$}} +[limit[250]]

\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[250]]" 
template="$:/core/ui/ListItemTemplate"/>

//<small>{{$:/language/Search/Matches/All}}</small>//

<$list filter="[$scope$search{$(searchTiddler)$}sort[title]limit[250]]" 
template="$:/core/ui/ListItemTemplate"/>

\end
\define searchResultList()

<$list filter="[{$(searchTiddler)$}prefix[[]]">

<<filterSearch>>

</$list>

<$list filter="[{$(searchTiddler)$}prefix[$:/]]">

<<regularSearch "all[system+shadows]">>

</$list>

<$list filter="[{$(searchTiddler)$}!prefix[[]!prefix[$:/]]">

<<regularSearch "!is[system]">>

</$list>

\end
<<searchResultList>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7a7b0665-e662-4426-ae74-efa870678e7b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to