mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-01 15:46:18 +00:00
98d411c08a
* Add empty message to tag picker, search dropdown and advanced search * Add empty message for tag-picker * Use italic font
31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
title: $:/core/ui/DefaultSearchResultList
|
|
tags: $:/tags/SearchResults
|
|
caption: {{$:/language/Search/DefaultResults/Caption}}
|
|
first-search-filter: [!is[system]search:title<userInput>sort[title]limit[250]]
|
|
second-search-filter: [!is[system]search<userInput>sort[title]limit[250]]
|
|
|
|
\define searchResultList()
|
|
\whitespace trim
|
|
//<small>{{$:/language/Search/Matches/Title}}</small>//
|
|
|
|
<$list filter="[<userInput>minlength[1]]" variable="ignore">
|
|
<$list filter={{{ [<configTiddler>get[first-search-filter]] }}} emptyMessage={{$:/language/Search/Matches/NoResult}}>
|
|
<span class={{{[<currentTiddler>addsuffix[-primaryList]] -[<searchListState>get[text]] +[then[]else[tc-list-item-selected]] }}}>
|
|
<$transclude tiddler="$:/core/ui/ListItemTemplate"/>
|
|
</span>
|
|
</$list>
|
|
</$list>
|
|
|
|
//<small>{{$:/language/Search/Matches/All}}</small>//
|
|
|
|
<$list filter="[<userInput>minlength[1]]" variable="ignore">
|
|
<$list filter={{{ [<configTiddler>get[second-search-filter]] }}} emptyMessage={{$:/language/Search/Matches/NoResult}}>
|
|
<span class={{{[<currentTiddler>addsuffix[-secondaryList]] -[<searchListState>get[text]] +[then[]else[tc-list-item-selected]] }}}>
|
|
<$transclude tiddler="$:/core/ui/ListItemTemplate"/>
|
|
</span>
|
|
</$list>
|
|
</$list>
|
|
|
|
\end
|
|
<<searchResultList>>
|