Variant of clone button - close the tiddler being cloned at the same time of creation of the cloned tiddler

I want to create a variant of clone view toolbar button - On pressing this button, I want the tiddler being cloned to be closed at the same time of creation of the cloned tiddler. How to do it?

In the actions triggered by your custom clone button use an action send message WidgetMessage: tm-close-tiddler

<$action-sendmessage $message="tm-close-tiddler" $param=<<currentTiddler>>/>
  • Assumes the tiddler to be closed in named in <<currentTiddler>>
1 Like

Thank you @TW_Tones. That was super easy to implement.

1 Like