mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-18 02:09:43 +00:00
0fae9ee992
An improvement to 6fb992690d
By making sure that all the popup state tiddlers have the prefix
$:/state/popup/ we can be more selective and just exclude popup state
tiddlers when we save. The end result is that once again other kinds of
state are persisted as expected (eg tabs, and sidebar visibility).
49 lines
1.7 KiB
Plaintext
49 lines
1.7 KiB
Plaintext
title: $:/core/ui/EditTemplate/tags
|
|
tags: $:/tags/EditTemplate
|
|
|
|
\define lingo-base() $:/language/EditTemplate/
|
|
\define tag-styles()
|
|
background-color:$(backgroundColor)$;
|
|
\end
|
|
<div class="tw-edit-tags">
|
|
<$fieldmangler>
|
|
<$list filter="[all[current]tags[]sort[title]]" storyview="pop"><$set name="backgroundColor" value={{!!color}}><span style=<<tag-styles>> class="tw-tag-label">
|
|
<$view field="title" format="text" />
|
|
<$button message="tw-remove-tag" param={{!!title}} class="btn-invisible tw-remove-tag-button">×</$button></span>
|
|
</$set>
|
|
</$list>
|
|
|
|
<div class="tw-edit-add-tag">
|
|
<span class="tw-add-tag-name">
|
|
<$edit-text tiddler="$:/temp/NewTagName" tag="input" default="" placeholder={{$:/language/EditTemplate/Tags/Add/Placeholder}} focusPopup=<<qualify "$:/state/popup/tags-auto-complete">> class="tw-edit-texteditor"/>
|
|
</span> <$button popup=<<qualify "$:/state/popup/tags-auto-complete">> class="btn-invisible btn-dropdown">{{$:/core/images/down-arrow}}</$button> <span class="tw-add-tag-button">
|
|
<$button message="tw-add-tag" param={{$:/temp/NewTagName}} set="$:/temp/NewTagName" setTo="" class="">
|
|
<<lingo Tags/Add/Button>>
|
|
</$button>
|
|
</span>
|
|
</div>
|
|
|
|
<div class="tw-block-dropdown-wrapper">
|
|
|
|
<$reveal state=<<qualify "$:/state/popup/tags-auto-complete">> type="nomatch" text="" default="">
|
|
|
|
<div class="tw-block-dropdown">
|
|
|
|
<$linkcatcher set="$:/temp/NewTagName" setTo="" message="tw-add-tag">
|
|
<$list filter="[!is[shadow]tags[]search{$:/temp/NewTagName}sort[title]]">
|
|
<$link>
|
|
<$set name="backgroundColor" value={{!!color}}>
|
|
<span style=<<tag-styles>> class="tw-tag-label">
|
|
<$view field="title" format="text"/>
|
|
</span>
|
|
</$set>
|
|
</$link>
|
|
</$list>
|
|
</$linkcatcher>
|
|
|
|
</div>
|
|
|
|
</$reveal>
|
|
</div>
|
|
</$fieldmangler>
|
|
</div> |