2015-08-31 19:32:32 +00:00
|
|
|
title: $:/plugins/tiddlywiki/text-slicer/ui/tiddler/toolbar/title
|
2015-08-30 18:15:12 +00:00
|
|
|
tags: $:/tags/TextSlicerToolbar
|
|
|
|
|
|
|
|
\define renameProxyTitle()
|
|
|
|
$:/config/plugins/tiddlywiki/text-slicer/rename-$(currentTiddler)$
|
|
|
|
\end
|
|
|
|
|
|
|
|
\define body()
|
|
|
|
<div class="tc-text-slicer-rename">
|
|
|
|
<$edit-text tag="input" tiddler=<<renameProxyTitle>> placeholder="Rename" default=<<currentTiddler>>/>
|
|
|
|
<$reveal type="nomatch" state="""$(renameProxyTitle)$""" text=<<currentTiddler>> default=<<currentTiddler>>>
|
|
|
|
<$button>
|
|
|
|
<$action-deletetiddler $tiddler=<<renameProxyTitle>>/>
|
|
|
|
cancel
|
|
|
|
</$button>
|
|
|
|
<$button>
|
|
|
|
<$action-sendmessage $message="tm-rename-tiddler" from=<<currentTiddler>> to={{$(renameProxyTitle)$}}/>
|
|
|
|
<$action-deletetiddler $tiddler=<<renameProxyTitle>>/>
|
|
|
|
rename
|
|
|
|
</$button>
|
2015-08-31 13:15:44 +00:00
|
|
|
<$set name="proxy-title" value={{$(renameProxyTitle)$}}>
|
|
|
|
<$list filter="""[<proxy-title>is[tiddler]]""">
|
|
|
|
Warning: tiddler already exists
|
|
|
|
</$list>
|
|
|
|
</$set>
|
2015-08-30 18:15:12 +00:00
|
|
|
</$reveal>
|
|
|
|
</div>
|
|
|
|
\end
|
|
|
|
|
|
|
|
<<body>>
|