Hello,

I've been searching for a few days and came up short.  How do you rename a 
tiddler?  The documentation shows WidgetMessage tm-rename-tiddler 
<https://tiddlywiki.com/#WidgetMessage%3A%20tm-rename-tiddler>, however 
that is destructive and leaves you with a fresh tiddler with a new name.

I've tried some variations of the below and came up short in my macro 
testing

<$action-setfield $tiddler="New Tiddler 2" $field="title" $value="New Name" 
/>

My use case is, I have created a personal task management workflow. When I 
archive my tasks, I want to change the the Title of the Tiddler to a 
combination of Completed date field and Caption field.

Here is my archive button for reference

\define archiveHere()
$(currentTiddler)$
\end


\define archiveHereButton(completed caption)
<$button tooltip={{$:/user/button/ArchiveTask/Hint}} class=<<tv-config-
toolbar-class>> param=<<archiveHere>> >
<$action-listops $tiddler=<<archiveHere>> $tags="+[append[task-archive]]" />
<$action-setfield $tiddler=<<archiveHere>> title="$completed$ $caption$" />
{{$:/core/images/chevron-down}}</$button>
\end


<!-- 2020-04-24 call macro and pass the fields to concatenate as new title 
of task -->
<$macrocall $name="archiveHereButton" completed={{!!completed}} caption={{!!
caption}}/>


Thank you,
Mick

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8a10aad8-41f4-4f12-89af-2e82f8bf3871%40googlegroups.com.

Reply via email to