mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-30 20:10:28 +00:00
72941f3e9a
The dropdown can be summoned by clicking on the search field. It will only appear if the search field is not empty. When the search field is not empty the dropdown can be also be summoned by clicking on the arrow or search result count. There are still some wrinkles where the dropdown doesn’t appear when expected; I’d appreciate feedback to help reproduce those cases. This change should still work with custom search result tabs.
16 lines
489 B
Plaintext
16 lines
489 B
Plaintext
title: $:/core/ui/DefaultSearchResultList
|
|
tags: $:/tags/SearchResults
|
|
caption: {{$:/language/Search/DefaultResults/Caption}}
|
|
|
|
\define searchResultList()
|
|
//<small>Title matches:</small>//
|
|
|
|
<$list filter="[!is[system]search:title{$(searchTiddler)$}sort[title]limit[250]]" template="$:/core/ui/ListItemTemplate"/>
|
|
|
|
//<small>All matches:</small>//
|
|
|
|
<$list filter="[!is[system]search{$(searchTiddler)$}sort[title]limit[250]]" template="$:/core/ui/ListItemTemplate"/>
|
|
|
|
\end
|
|
<<searchResultList>>
|