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:
3
plugins/tiddlywiki/text-slicer/tag-TextSlicerToolbar.tid
Normal file
3
plugins/tiddlywiki/text-slicer/tag-TextSlicerToolbar.tid
Normal file
@@ -0,0 +1,3 @@
|
||||
title: $:/tags/TextSlicerToolbar
|
||||
list: $:/plugins/tiddlywiki/text-slicer/toolbar/title $:/plugins/tiddlywiki/text-slicer/toolbar/rename
|
||||
|
||||
16
plugins/tiddlywiki/text-slicer/toolbar-rename.tid
Normal file
16
plugins/tiddlywiki/text-slicer/toolbar-rename.tid
Normal 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>>
|
||||
Reference in New Issue
Block a user