title: $:/core/macros/tag-picker tags: $:/tags/Macro \define add-tag-actions() <$action-sendmessage $message="tm-add-tag" $param={{$:/temp/NewTagName}}/> <$action-deletetiddler $tiddler="$:/temp/NewTagName"/> \end \define tag-button() <$button class="tc-btn-invisible" tag="a"> $(actions)$ <$action-deletetiddler $tiddler="$:/temp/NewTagName"/> <$macrocall $name="tag-pill" tag=<>/> \end \define tag-picker(actions) <$set name="actions" value="""$actions$""">
<$keyboard key="ENTER" actions=<>> <$edit-text tiddler="$:/temp/NewTagName" tag="input" default="" placeholder={{$:/language/EditTemplate/Tags/Add/Placeholder}} focusPopup=<> class="tc-edit-texteditor tc-popup-handle"/> <$button popup=<> class="tc-btn-invisible" tooltip={{$:/language/EditTemplate/Tags/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Tags/Dropdown/Caption}}>{{$:/core/images/down-arrow}} <$set name="tag" value={{$:/temp/NewTagName}}> <$button set="$:/temp/NewTagName" setTo="" class=""> $actions$ <$action-deletetiddler $tiddler="$:/temp/NewTagName"/> {{$:/language/EditTemplate/Tags/Add/Button}}
<$reveal state=<> type="nomatch" text="" default="">
<$list filter="[tags[]!is[system]search:title{$:/temp/NewTagName}sort[]]" variable="tag"> <>
<$list filter="[tags[]is[system]search:title{$:/temp/NewTagName}sort[]]" variable="tag"> <>
\end