mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 12:07:19 +00:00
d450fce77b
* add trimSelection - both, start, end, no * add documentation for trimSelection to tm-edit-text-operation tiddler * add trimSelection both to all buttions where it makes sense * change "both" to "yes" as a default * fix trimSelection typo * fix trimSelection typo * docs trimSelection add "no" as possible value - it's the default * remove some redundant variable declarations * update from-version * fix comment typos * fix whitespace * make local variables more visible
54 lines
1.2 KiB
Plaintext
54 lines
1.2 KiB
Plaintext
title: $:/core/ui/EditorToolbar/StampDropdown/ItemTemplate
|
|
|
|
<$linkcatcher actions="""
|
|
|
|
<$list filter="[<modifier>!match[ctrl]]" variable="ignore">
|
|
|
|
<$list filter="[<currentTiddler>addsuffix[/prefix]!is[tiddler]!is[shadow]removesuffix[/prefix]addsuffix[/suffix]!is[tiddler]!is[shadow]]" variable="ignore">
|
|
|
|
<$action-sendmessage
|
|
$message="tm-edit-text-operation"
|
|
$param="replace-selection"
|
|
text={{{ [<currentTiddler>get[text]] }}}
|
|
/>
|
|
|
|
</$list>
|
|
|
|
|
|
<$list filter="[<currentTiddler>addsuffix[/prefix]] [<currentTiddler>addsuffix[/suffix]] +[is[shadow]] :else[is[tiddler]] +[limit[1]]" variable="ignore">
|
|
|
|
<$action-sendmessage
|
|
$message="tm-edit-text-operation"
|
|
$param="wrap-selection"
|
|
prefix={{{ [<currentTiddler>addsuffix[/prefix]get[text]] }}}
|
|
suffix={{{ [<currentTiddler>addsuffix[/suffix]get[text]] }}}
|
|
/>
|
|
|
|
</$list>
|
|
|
|
</$list>
|
|
|
|
<$list filter="[<modifier>match[ctrl]]" variable="ignore">
|
|
|
|
<$action-sendmessage $message="tm-edit-tiddler"/>
|
|
|
|
</$list>
|
|
|
|
<$action-deletetiddler
|
|
$tiddler=<<dropdown-state>>
|
|
/>
|
|
|
|
""">
|
|
|
|
<$link tooltip={{{ [<currentTiddler>get[description]] }}}>
|
|
|
|
<$transclude tiddler=<<currentTiddler>> field="caption" mode="inline">
|
|
|
|
<$view tiddler=<<currentTiddler>> field="title" />
|
|
|
|
</$transclude>
|
|
|
|
</$link>
|
|
|
|
</$linkcatcher>
|