mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-11 09:50:27 +00:00
Make sidebarsegments/search-results-count work with all search tabs (#5062)
This commit is contained in:
parent
684f13fbcb
commit
eae3da0e9d
@ -8,11 +8,13 @@ tags: $:/tags/SideBarSegment
|
||||
<$button popup=<<qualify "$:/state/popup/search-dropdown">> class="tc-btn-invisible">
|
||||
{{$:/core/images/down-arrow}}
|
||||
<$list filter="[{$(searchTiddler)$}minlength{$:/config/Search/MinLength}limit[1]]" variable="listItem">
|
||||
<$set name="searchTerm" value={{{ [<searchTiddler>get[text]] }}}>
|
||||
<$set name="resultCount" value="""<$count filter="[!is[system]search<searchTerm>]"/>""">
|
||||
<$vars userInput={{{ [<searchTiddler>get[text]] }}} configTiddler={{{ [[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}] }}}>
|
||||
<$vars primaryListFilter={{{ [<configTiddler>get[first-search-filter]] }}} secondaryListFilter={{{ [<configTiddler>get[second-search-filter]] }}}>
|
||||
<$set name="resultCount" value="""<$count filter="[subfilter<primaryListFilter>] =[subfilter<secondaryListFilter>]"/>""">
|
||||
{{$:/language/Search/Matches}}
|
||||
</$set>
|
||||
</$set>
|
||||
</$vars>
|
||||
</$vars>
|
||||
</$list>
|
||||
</$button>
|
||||
\end
|
||||
|
Loading…
Reference in New Issue
Block a user