mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-19 18:59:42 +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).
38 lines
1.2 KiB
Plaintext
38 lines
1.2 KiB
Plaintext
title: $:/TagManager
|
|
|
|
\define lingo-base() $:/language/TagManager/
|
|
\define iconEditor(title)
|
|
<$edit-text field="icon" tag="input" size="20"/> <$button popup=<<qualify "$:/state/popup/icon/$title$">> class="btn-invisible btn-dropdown">{{$:/core/images/down-arrow}}</$button>
|
|
<div class="tw-block-dropdown-wrapper">
|
|
<$reveal state=<<qualify "$:/state/popup/icon/$title$">> type="nomatch" text="" default="">
|
|
<$linkcatcher to="$title$!!icon">
|
|
<div class="tw-block-dropdown tw-edit-type-dropdown">
|
|
<$list filter="[all[shadows+tiddlers]is[image]] [all[shadows+tiddlers]tag[$:/tags/Image]] +[sort[title]]">
|
|
<$link to={{!!title}}>
|
|
<$view field="title"/>
|
|
</$link>
|
|
</$list>
|
|
</div>
|
|
</$linkcatcher>
|
|
</$reveal>
|
|
</div>
|
|
\end
|
|
<table>
|
|
<tbody>
|
|
<tr>
|
|
<th><<lingo Tag/Heading>></th>
|
|
<th><<lingo Count/Heading>></th>
|
|
<th><<lingo Colour/Heading>></th>
|
|
<th><<lingo Icon/Heading>></th>
|
|
</tr>
|
|
<$list filter="[tags[]!is[system]sort[title]]">
|
|
<tr>
|
|
<td><$transclude tiddler="$:/core/ui/TagTemplate"/></td>
|
|
<td><$count filter="[all[current]tagging[]]"/></td>
|
|
<td><$edit-text field="color" tag="input" type="text" size="9"/> <$edit-text field="color" tag="input" type="color"/></td>
|
|
<td><$macrocall $name="iconEditor" title={{!!title}}/></td>
|
|
</tr>
|
|
</$list>
|
|
</tbody>
|
|
</table>
|