mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-16 17:29:43 +00:00
8239275edb
Now you can pick from a dropdown of predefined filtered searches in the advanced search filter tab.
29 lines
1.2 KiB
Plaintext
29 lines
1.2 KiB
Plaintext
title: $:/core/ui/AdvancedSearch/Filter
|
|
tags: $:/tags/AdvancedSearch
|
|
caption: {{$:/language/Search/Filter/Caption}}
|
|
|
|
\define lingo-base() $:/language/Search/
|
|
<$linkcatcher to="$:/temp/advancedsearch">
|
|
|
|
<<lingo Filter/Hint>>
|
|
|
|
<div class="tw-search tw-advanced-search"><$edit-text tiddler="$:/temp/advancedsearch" type="search" tag="input"/> <$button popup=<<qualify "$:/state/filterDropdown">> class="btn-invisible">{{$:/core/images/down-arrow}}</$button> <$reveal state="$:/temp/advancedsearch" type="nomatch" text=""> <$link to="" class="btn-invisible">{{$:/core/images/close-button}}</$link></$reveal></div>
|
|
|
|
<div class="tw-block-dropdown-wrapper">
|
|
<$reveal state=<<qualify "$:/state/filterDropdown">> type="nomatch" text="" default="">
|
|
<div class="tw-block-dropdown tw-edit-type-dropdown">
|
|
<$list filter="[is[shadow]tag[$:/tags/Filter]] [!is[shadow]tag[$:/tags/Filter]] +[sort[description]]"><$link to={{!!filter}}><$transclude field="description"/></$link>
|
|
</$list>
|
|
</div>
|
|
</$reveal>
|
|
</div>
|
|
|
|
</$linkcatcher>
|
|
|
|
<$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
|
|
<div class="tw-search-results">
|
|
<<lingo Advanced/Matches>>
|
|
<$list filter={{$:/temp/advancedsearch}} template="$:/core/ui/ListItemTemplate"/>
|
|
</div>
|
|
</$reveal>
|