mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-03 04:39:10 +00:00
Merge pull request #1353 from tobibeer/edit-tags-filter-tags-and-titles
edit-tags filtering tags and titles
This commit is contained in:
commit
a58e800f24
9
core/ui/Components/tag-link.tid
Normal file
9
core/ui/Components/tag-link.tid
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
title: $:/core/ui/Components/tag-link
|
||||||
|
|
||||||
|
<$link>
|
||||||
|
<$set name="backgroundColor" value={{!!color}}>
|
||||||
|
<span style=<<tag-styles>> class="tc-tag-label">
|
||||||
|
<$view field="title" format="text"/>
|
||||||
|
</span>
|
||||||
|
</$set>
|
||||||
|
</$link>
|
@ -27,14 +27,12 @@ background-color:$(backgroundColor)$;
|
|||||||
<$reveal state=<<qualify "$:/state/popup/tags-auto-complete">> type="nomatch" text="" default="">
|
<$reveal state=<<qualify "$:/state/popup/tags-auto-complete">> type="nomatch" text="" default="">
|
||||||
<div class="tc-block-dropdown">
|
<div class="tc-block-dropdown">
|
||||||
<$linkcatcher set="$:/temp/NewTagName" setTo="" message="tm-add-tag">
|
<$linkcatcher set="$:/temp/NewTagName" setTo="" message="tm-add-tag">
|
||||||
<$list filter="[!is[shadow]tags[]search{$:/temp/NewTagName}sort[title]]">
|
<$list filter="[tags[]search:title{$:/temp/NewTagName}sort[]]">
|
||||||
<$link>
|
{{||$:/core/ui/Components/tag-link}}
|
||||||
<$set name="backgroundColor" value={{!!color}}>
|
</$list>
|
||||||
<span style=<<tag-styles>> class="tc-tag-label">
|
<hr>
|
||||||
<$view field="title" format="text"/>
|
<$list filter="[!is[system]search:title{$:/temp/NewTagName}sort[]]">
|
||||||
</span>
|
{{||$:/core/ui/Components/tag-link}}
|
||||||
</$set>
|
|
||||||
</$link>
|
|
||||||
</$list>
|
</$list>
|
||||||
</$linkcatcher>
|
</$linkcatcher>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user