mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-25 01:20:30 +00:00
35 lines
1.3 KiB
Plaintext
35 lines
1.3 KiB
Plaintext
title: $:/core/ui/AdvancedSearch/Standard
|
|
tags: $:/tags/AdvancedSearch
|
|
caption: {{$:/language/Search/Standard/Caption}}
|
|
|
|
\define lingo-base() $:/language/Search/
|
|
<$linkcatcher to="$:/temp/advancedsearch">
|
|
|
|
<<lingo Standard/Hint>>
|
|
|
|
<div class="tc-search">
|
|
<$edit-text tiddler="$:/temp/advancedsearch" type="search" tag="input" focus={{$:/config/Search/AutoFocus}}/>
|
|
<$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
|
|
<$button class="tc-btn-invisible">
|
|
<$action-setfield $tiddler="$:/temp/advancedsearch" $field="text" $value=""/>
|
|
{{$:/core/images/close-button}}
|
|
</$button>
|
|
</$reveal>
|
|
</div>
|
|
|
|
</$linkcatcher>
|
|
|
|
<$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
|
|
<$list filter="[{$:/temp/advancedsearch}minlength{$:/config/Search/MinLength}limit[1]]" emptyMessage="""<div class="tc-search-results">{{$:/language/Search/Search/TooShort}}</div>""" variable="listItem">
|
|
<$set name="searchTiddler" value="$:/temp/advancedsearch">
|
|
<$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/>
|
|
</$list>
|
|
""">
|
|
<$macrocall $name="tabs" tabsList="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]" default={{$:/config/SearchResults/Default}}/>
|
|
</$list>
|
|
</$set>
|
|
</$list>
|
|
</$reveal>
|