That would be a handy improvement on the standard search. The one thing is that it might require a different character limit. The standard default is 3 characters, but if you type in $:/ you've already met that limit and are exposed to a massive result list.
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. -- Mark On Wednesday, November 14, 2018 at 10:47:55 AM UTC-8, bimlas wrote: > > 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/aa01b5c3-a1e3-4230-b5f1-f74e6710440b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

