diff --git a/plugins/tiddlywiki/menubar/items/search.tid b/plugins/tiddlywiki/menubar/items/search.tid index 64c45afc4..8e0ba6482 100644 --- a/plugins/tiddlywiki/menubar/items/search.tid +++ b/plugins/tiddlywiki/menubar/items/search.tid @@ -4,14 +4,19 @@ description: Search caption: Search tags: $:/tags/MenuBar -<$set name="searchTiddler" value="$:/temp/menubarsearch"> +\define cancel-search-actions() <$action-deletetiddler $filter="[<__storeTitle__>] [<__tiddler__>] [<__selectionStateTitle__>]"/> +\define input-accept-actions() <$action-navigate $to={{{ [<__tiddler__>get[text]] }}}/> + +\whitespace trim +<$vars searchTiddler="$:/temp/menubarsearch/input" searchListState=<> titleSearchFilter="[!is[system]search:titlesort[title]limit[250]]" allSearchFilter="[!is[system]searchsort[title]limit[250]]"> - -<$edit-text tiddler=<> tag="input" type="search" focusPopup="$:/state/popup/menubar-search-dropdown" class="tc-popup-handle tc-menu-show-when-wide" placeholder="Search..." default="" cancelPopups="yes"/> - +<$macrocall $name="keyboard-driven-input" tiddler="$:/temp/menubarsearch" storeTitle=<> selectionStateTitle=<> + refreshTitle="$:/temp/menubarsearch/refresh" tag="input" type="search" focusPopup="$:/state/popup/menubar-search-dropdown" + class="tc-popup-handle tc-menu-show-when-wide" placeholder="Search..." default="" cancelPopups="yes" + primaryListFilter=<> secondaryListFilter=<> inputAcceptActions=<> + inputCancelActions=<> filterMinLength={{$:/config/Search/MinLength}}/> - <$reveal tag="div" class="tc-block-dropdown-wrapper" state="$:/state/popup/menubar-search-dropdown" type="nomatch" text="" default="">
@@ -30,4 +35,4 @@ tags: $:/tags/MenuBar - +