1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-10-28 06:07:40 +00:00

Add renaming to text-slicer tiddler toolbar

The plan is to expose the functionality in other places, too - for
example, the edit template and the tag manager
This commit is contained in:
Jermolene
2015-08-04 17:44:07 +01:00
parent be0ebfeeae
commit 72ed4b2673
5 changed files with 103 additions and 1 deletions

View File

@@ -0,0 +1,3 @@
title: $:/tags/TextSlicerToolbar
list: $:/plugins/tiddlywiki/text-slicer/toolbar/title $:/plugins/tiddlywiki/text-slicer/toolbar/rename

View File

@@ -0,0 +1,16 @@
title: $:/plugins/tiddlywiki/text-slicer/toolbar/rename
tags: $:/tags/TextSlicerToolbar
\define renameProxyTitle()
$:/config/plugins/tiddlywiki/text-slicer/rename-$(currentTiddler)$
\end
\define body()
<$edit-text tag="input" tiddler=<<renameProxyTitle>> placeholder="Rename" default=<<currentTiddler>>/>
<$button>
<$action-sendmessage $message="tm-rename-tiddler" from=<<currentTiddler>> to={{$(renameProxyTitle)$}}/>
rename
</$button>
\end
<<body>>