mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-06 01:02:17 -08:00
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.
15 lines
469 B
Text
15 lines
469 B
Text
title: $:/core/ui/SearchResults
|
|
|
|
<div class="tc-search-results">
|
|
|
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]" emptyMessage="""
|
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]">
|
|
<$transclude mode="block"/>
|
|
</$list>
|
|
""">
|
|
|
|
<$macrocall $name="tabs" tabsList="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]" default={{$:/config/SearchResults/Default}}/>
|
|
|
|
</$list>
|
|
|
|
</div>
|