mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-11 09:50:27 +00:00
Add dropdown of canned filter searches
Now you can pick from a dropdown of predefined filtered searches in the advanced search filter tab.
This commit is contained in:
parent
be6509a17f
commit
8239275edb
12
core/language/en-GB/Filters.multids
Normal file
12
core/language/en-GB/Filters.multids
Normal file
@ -0,0 +1,12 @@
|
||||
title: $:/language/Filters/
|
||||
|
||||
AllTiddlers: All tiddlers except system tiddlers
|
||||
RecentTiddlers: Recently modified tiddlers
|
||||
AllTags: All tags except system tags
|
||||
Missing: Missing tiddlers
|
||||
Drafts: Draft tiddlers
|
||||
Orphans: Orphan tiddlers
|
||||
SystemTiddlers: System tiddlers
|
||||
ShadowTiddlers: Shadow tiddlers
|
||||
OverriddenShadowTiddlers: Overridden shadow tiddlers
|
||||
SystemTags: System tags
|
@ -7,22 +7,22 @@ caption: {{$:/language/Search/Filter/Caption}}
|
||||
|
||||
<<lingo Filter/Hint>>
|
||||
|
||||
<div class="tw-search"><$edit-text tiddler="$:/temp/advancedsearch" type="search" tag="input"/><$reveal state="$:/temp/advancedsearch" type="nomatch" text=""> <$link to="" class="btn-invisible">{{$:/core/images/close-button}}</$link></$reveal></div>
|
||||
<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>
|
||||
|
||||
<$reveal state="$:/temp/advancedsearch" type="match" text="">
|
||||
|
||||
</$reveal>
|
||||
|
5
core/ui/Filters/AllTags.tid
Normal file
5
core/ui/Filters/AllTags.tid
Normal file
@ -0,0 +1,5 @@
|
||||
title: $:/core/Filters/AllTags
|
||||
tags: $:/tags/Filter
|
||||
filter: [tags[]!is[system]sort[title]]
|
||||
description: {{$:/language/Filters/AllTags}}
|
||||
|
5
core/ui/Filters/AllTiddlers.tid
Normal file
5
core/ui/Filters/AllTiddlers.tid
Normal file
@ -0,0 +1,5 @@
|
||||
title: $:/core/Filters/AllTiddlers
|
||||
tags: $:/tags/Filter
|
||||
filter: [!is[system]sort[title]]
|
||||
description: {{$:/language/Filters/AllTiddlers}}
|
||||
|
5
core/ui/Filters/Drafts.tid
Normal file
5
core/ui/Filters/Drafts.tid
Normal file
@ -0,0 +1,5 @@
|
||||
title: $:/core/Filters/Drafts
|
||||
tags: $:/tags/Filter
|
||||
filter: [has[draft.of]sort[title]]
|
||||
description: {{$:/language/Filters/Drafts}}
|
||||
|
5
core/ui/Filters/Missing.tid
Normal file
5
core/ui/Filters/Missing.tid
Normal file
@ -0,0 +1,5 @@
|
||||
title: $:/core/Filters/Missing
|
||||
tags: $:/tags/Filter
|
||||
filter: [is[missing]sort[title]]
|
||||
description: {{$:/language/Filters/Missing}}
|
||||
|
5
core/ui/Filters/Orphans.tid
Normal file
5
core/ui/Filters/Orphans.tid
Normal file
@ -0,0 +1,5 @@
|
||||
title: $:/core/Filters/Orphans
|
||||
tags: $:/tags/Filter
|
||||
filter: [is[orphan]sort[title]]
|
||||
description: {{$:/language/Filters/Orphans}}
|
||||
|
5
core/ui/Filters/OverriddenShadowTiddlers.tid
Normal file
5
core/ui/Filters/OverriddenShadowTiddlers.tid
Normal file
@ -0,0 +1,5 @@
|
||||
title: $:/core/Filters/OverriddenShadowTiddlers
|
||||
tags: $:/tags/Filter
|
||||
filter: [is[tiddler]is[shadow]]
|
||||
description: {{$:/language/Filters/OverriddenShadowTiddlers}}
|
||||
|
5
core/ui/Filters/RecentTiddlers.tid
Normal file
5
core/ui/Filters/RecentTiddlers.tid
Normal file
@ -0,0 +1,5 @@
|
||||
title: $:/core/Filters/RecentTiddlers
|
||||
tags: $:/tags/Filter
|
||||
filter: [!is[system]has[modified]!sort[modified]]
|
||||
description: {{$:/language/Filters/RecentTiddlers}}
|
||||
|
5
core/ui/Filters/ShadowTiddlers.tid
Normal file
5
core/ui/Filters/ShadowTiddlers.tid
Normal file
@ -0,0 +1,5 @@
|
||||
title: $:/core/Filters/ShadowTiddlers
|
||||
tags: $:/tags/Filter
|
||||
filter: [is[shadow]sort[title]]
|
||||
description: {{$:/language/Filters/ShadowTiddlers}}
|
||||
|
5
core/ui/Filters/SystemTags.tid
Normal file
5
core/ui/Filters/SystemTags.tid
Normal file
@ -0,0 +1,5 @@
|
||||
title: $:/core/Filters/SystemTags
|
||||
tags: $:/tags/Filter
|
||||
filter: [tags[]is[system]] [is[shadow]tags[]is[system]] +[sort[title]]
|
||||
description: {{$:/language/Filters/SystemTags}}
|
||||
|
5
core/ui/Filters/SystemTiddlers.tid
Normal file
5
core/ui/Filters/SystemTiddlers.tid
Normal file
@ -0,0 +1,5 @@
|
||||
title: $:/core/Filters/SystemTiddlers
|
||||
tags: $:/tags/Filter
|
||||
filter: [is[system]sort[title]]
|
||||
description: {{$:/language/Filters/SystemTiddlers}}
|
||||
|
@ -317,6 +317,10 @@ a.tw-tiddlylink-external:hover {
|
||||
color: <<colour sidebar-foreground>>;
|
||||
}
|
||||
|
||||
.tw-advanced-search input {
|
||||
width: 60%;
|
||||
}
|
||||
|
||||
.tw-search a svg {
|
||||
height: 0.75em;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user