title: $:/core/ui/SideBarSegments/search tags: $:/tags/SideBarSegment \whitespace trim \procedure count-popup-button() \whitespace trim <$button popup=<> class="tc-btn-invisible"> {{$:/core/images/down-arrow}} <$list filter="[get[text]minlength{$:/config/Search/MinLength}limit[1]]" variable="listItem"> <$vars userInput={{{ [get[text]] }}} configTiddler={{{ [[$:/state/search/currentTab]!is[missing]get[text]] :else[{$:/config/SearchResults/Default}] }}} replaceRegexp="limit\[\d+\]"> <$vars primaryListFilter={{{ [get[first-search-filter]search-replace:g:regexp,[]] }}} secondaryListFilter={{{ [get[second-search-filter]search-replace:g:regexp,[]] }}}> <$set name="resultCount" value="""<$count filter="[subfilter] [subfilter]"/>"""> {{$:/language/Search/Matches}} \end \procedure search-results-list() \whitespace trim <$vars userInput={{{ [get[text]] }}} configTiddler={{{ [[$:/state/search/currentTab]!is[missing]get[text]] :else[{$:/config/SearchResults/Default}] }}}> <$list filter="[minlength{$:/config/Search/MinLength}limit[1]]" emptyMessage="""
{{$:/language/Search/Search/TooShort}}
""" variable="listItem"> <$tiddler tiddler=<>> {{$:/core/ui/SearchResults}} \end \procedure cancel-search-actions() <$list filter="[get[text]!match{$:/temp/search}]" emptyMessage="""<$action-deletetiddler $filter="[[$:/temp/search]] [] []"/>"""><$action-setfield $tiddler="$:/temp/search" text={{{ [get[text]] }}}/><$action-setfield $tiddler="$:/temp/search/refresh" text="yes"/> \procedure input-accept-actions() <$list filter="[{$:/config/Search/NavigateOnEnter/enable}match[yes]]" emptyMessage="""<$list filter="[get[text]!is[missing]] :else[get[text]is[shadow]]"><$action-navigate $to={{{ [get[text]] }}}/>"""><$action-navigate $to={{{ [get[text]] }}}/> \procedure input-accept-variant-actions() <$list filter="[{$:/config/Search/NavigateOnEnter/enable}match[yes]]" emptyMessage="""<$list filter="[get[text]!is[missing]] :else[get[text]is[shadow]]"><$list filter="[get[text]minlength[1]]"><$action-sendmessage $message="tm-edit-tiddler" $param={{{ [get[text]] }}}/>"""><$list filter="[get[text]minlength[1]]"><$action-sendmessage $message="tm-edit-tiddler" $param={{{ [get[text]] }}}/> \procedure set-next-input-tab() <$transclude $variable="change-input-tab" stateTitle="$:/state/tab/search-results/sidebar" tag="$:/tags/SearchResults" beforeafter="after" defaultState={{$:/config/SearchResults/Default}} actions="""<$action-setfield $tiddler="$:/state/search/currentTab" text=<>/>"""/> \procedure set-previous-input-tab() <$transclude $variable="change-input-tab" stateTitle="$:/state/tab/search-results/sidebar" tag="$:/tags/SearchResults" beforeafter="before" defaultState={{$:/config/SearchResults/Default}} actions="""<$action-setfield $tiddler="$:/state/search/currentTab" text=<>/>"""/> \procedure advanced-search-actions() <$action-setfield $tiddler="$:/temp/advancedsearch" text={{$:/temp/search/input}}/><$action-setfield $tiddler="$:/temp/advancedsearch/input" text={{$:/temp/search/input}}/><><$action-navigate $to="$:/AdvancedSearch"/><$action-setfield $tiddler="$:/temp/advancedsearch/refresh" text="yes"/><$action-sendmessage $message="tm-focus-selector" $param="""[data-tiddler-title="$:/AdvancedSearch"] .tc-search input""" preventScroll="true"/><$action-deletetiddler $filter="$:/temp/search $:/temp/search/input $:/temp/search/refresh []"/>