1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Text-slicer: Only show slice button for text tiddlers

This commit is contained in:
Jeremy Ruston 2019-09-16 16:16:18 +01:00
parent 8c89461291
commit 83954582f4

View File

@ -10,6 +10,7 @@ description: Slice this text tiddler by headings and lists
Slice this text tiddler into chunks Slice this text tiddler into chunks
\end \end
<$list filter="[<currentTiddler>!is[image]!is[binary]]" variable="ignore">
<$button tooltip=<<hint>> aria-label=<<hint>> class=<<tv-config-toolbar-class>>> <$button tooltip=<<hint>> aria-label=<<hint>> class=<<tv-config-toolbar-class>>>
<$action-sendmessage $message="tm-modal" $param="$:/plugins/tiddlywiki/text-slicer/ui/slice-modal" currentTiddler=<<currentTiddler>>/> <$action-sendmessage $message="tm-modal" $param="$:/plugins/tiddlywiki/text-slicer/ui/slice-modal" currentTiddler=<<currentTiddler>>/>
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]"> <$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
@ -18,4 +19,5 @@ Slice this text tiddler into chunks
<$list filter="[<tv-config-toolbar-text>prefix[yes]]"> <$list filter="[<tv-config-toolbar-text>prefix[yes]]">
<span class="tc-btn-text"> Slice tiddler</span> <span class="tc-btn-text"> Slice tiddler</span>
</$list> </$list>
</$button> </$button>
</$list>