1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-09 11:29:58 +00:00
TiddlyWiki5/plugins/tiddlywiki/text-slicer/ui/slice-toolbar-button.tid

24 lines
900 B
Plaintext
Raw Normal View History

title: $:/plugins/tiddlywiki/text-slicer/ui/slice-toolbar-button
tags: $:/tags/ViewToolbar
list-before: $:/core/ui/Buttons/edit
2017-07-18 14:44:27 +00:00
caption: {{$:/plugins/tiddlywiki/text-slicer/images/text-slicer-icon}} Slice text tiddler
description: Slice this text tiddler by headings and lists
\whitespace trim
2015-08-03 08:13:45 +00:00
\define hint()
Slice this text tiddler into chunks
2015-08-03 08:13:45 +00:00
\end
<$list filter="[<currentTiddler>!is[image]!is[binary]]" variable="ignore">
<$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>>/>
<$list filter="[<tv-config-toolbar-icons>match[yes]]">
{{$:/plugins/tiddlywiki/text-slicer/images/text-slicer-icon}}
</$list>
<$list filter="[<tv-config-toolbar-text>match[yes]]">
<span class="tc-btn-text">Slice tiddler</span>
</$list>
</$button>
</$list>