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.png
Find system + shadow tiddlers: https://i.imgur.com/yMTWt5d.png
Search by filters: https://i.imgur.com/xIXtmn6.png
Note: The "Filter error: Missing closing bracket in filter expression" is
not shown at all.
To achieve this behaviour, rewrite the contents of
$:/core/ui/DefaultSearchResultList with this:
\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>
--
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/66dee473-81f2-4849-9944-e3718abfad0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.