Hello TW-Community,
I got from @pmario a solution to exchange the space by another separator if I create a new tiddler How to exchange the space separator before the number of new tiddler - Discussion - Talk TW.
\procedure new-entry(selector, sep)
\procedure new-tiddler()
<$wikify name="title" text=`<<unusedtitle baseName:"$(selector)$" separator:"$(sep)$" startCount:"01" template:"$basename$$separator$$count:2$">>`>
<$action-createtiddler $basetitle=<<title>> tags=<<selector>> >
<$action-navigate $to=<<createTiddler-title>>/>
</$action-createtiddler>
</$wikify>
\end new-tiddler
<$button actions=<<new-tiddler>> >
{{$:/core/images/plus-button}} <<selector>>
</$button>
\end
I want to extend this possibility also to clone a tiddler and using the separator and read this information here:
- Cloning a tiddler - Discussion - Talk TW
- How do I clone a tiddler while giving it a new title? - Discussion - Talk TW
I tried to implement the solution <$action-sendmessage $message="tm-new-tiddler" $param=<<list-item>> title="new title" />
instead of <$action-createtiddler $basetitle=<<title>> tags=<<selector>> >
by replacing $param with title but don’t get the expected result.
What I want is a 100% clone of the tiddler but with a seperator as parameter instead of the space.
\procedure clone-entry(selector, sep)
\procedure new-tiddler()
<$wikify name="title" text=`<<unusedtitle baseName:"$(selector)$" separator:"$(sep)$" startCount:"01" template:"$basename$$separator$$count:2$">>`>
<!--
<$action-createtiddler $basetitle=<<title>> tags=<<selector>> >
-->
<$action-sendmessage $message="tm-new-tiddler" $param=<<title>> />
<$action-navigate $to=<<createTiddler-title>>/>
</$action-createtiddler>
</$wikify>
\end new-tiddler
<$button actions=<<new-tiddler>> >
{{$:/core/images/plus-button}} <<selector>>
</$button>
\end
Thank you for any help and support
Stefan