@PMario,
I actually tested *tm-rename-tiddler* and it was creating a new empty
tiddler and erasing the From tiddler. This was in 5.1.20 However, I am
testing it now and it is working fine. I've since upgraded to 5.1.22. All
of the fields, contents, and dates are coming over to the newly renamed
tiddler. Its actually saving me lines of code. I do not know if my
original testing issues was due to my error though.
And I am also curious of learning why actions should not be in the button
widget.
*Using tm-rename-tiddler*
\define archiveHere()
$(currentTiddler)$
\end
\define archiveHereButton(completed caption)
<$button tooltip={{$:/user/button/ArchiveTask/Hint}} class=<<tv-config-
toolbar-class>> param=<<archiveHere>> >
<!-- append archive tag -->
<$action-listops $tiddler=<<archiveHere>> $tags="+[append[task-archive]]" />
<$action-sendmessage $message="tm-rename-tiddler" from=<<archiveHere>>
to="$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}}/>
*Using actions*
\define archiveHere()
$(currentTiddler)$
\end
\define archiveHereButton(completed caption)
<$button tooltip={{$:/user/button/ArchiveTask/Hint}} class=<<tv-config-
toolbar-class>> param=<<archiveHere>> >
<!-- append archive tag -->
<$action-listops $tiddler=<<archiveHere>> $tags="+[append[task-archive]]" />
<!-- open the target tiddler that will be created during the rename-->
<$action-navigate $to="$completed$ $caption$" />
<!-- renaming tiddler will create a new one with existing content -->
<$action-setfield $tiddler=<<archiveHere>> title="$completed$ $caption$" />
<!-- delete the original -->
<$action-deletetiddler $tiddler=<<currentTiddler>> />
{{$:/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}}/>
On Saturday, April 25, 2020 at 9:42:29 AM UTC-4, PMario wrote:
>
> Hi N P
>
> I did test the tm-rename-tiddler. ... It doesn't modify the "created"
> field. So it seems you did other commands, that created a new tiddler.
>
> -m
>
>
--
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/fa6c7947-87ae-46dc-a3a2-bc8f591a1498%40googlegroups.com.