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

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

To achieve this behaviour, modify the contents 
of $:/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/b1797b70-2d4c-4f13-9726-0d8cd99ac378%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to