I have got this working by moving the actions from the buttons actions parameter’s to inside the body. I do not have a full understanding of why but here is the resulting macro if you are interested;
I will mark this as solved on my own post but feel free to contribute. Thanks @pmario
\define create-subtiddler-actions()
<$action-sendmessage $message="tm-rename-tiddler" from=<<subtiddlertemp>> to=<<next-subtiddler>> />
<$action-setfield $tiddler=<<next-subtiddler>> domain={{!!domain}} parent=<<currentTiddler>>/>
<$action-sendmessage $message="tm-add-tag" $param="subtiddler"/>
<$action-navigate $to=<<next-subtiddler>> $scroll=no/>
<$action-setfield $tiddler=<<subtiddlertemp>> text=""/>
<$action-setfield $tiddler=<<currentTiddler>> last-subtiddler-date=<<now "YYYY0MM0DD1200000XXX">> />
\end
\define subtiddler-text-here()
<$set name=subtiddlertemp value={{{ [all[current]addprefix[$:/temp/]addsuffix[-subtiddler]] }}}>
<$edit-text tiddler=<<subtiddlertemp>> placeholder="subTiddler text" field=text class="tc-edit-texteditor tc-edit-texteditor-body" rows=1/>
<$list filter="[<subtiddlertemp>has[text]]" variable=nul>
<$wikify name=next-subtiddler text="""<<unusedtitle "$(currentTiddler)$">>""" >
<$button tooltip="clear text"><$action-setfield $tiddler=<<subtiddlertemp>> text=""/>{{$:/core/ui/Buttons/refresh}}</$button>
<$button><<create-subtiddler-actions>> {{$:/core/images/new-button}} <<next-subtiddler>></$button>
</$wikify>
</$list>
</$set>
\end
<<subtiddler-text-here>>
If you are interested in the actual solution do ask, it’s currently a work in progress. To easily create subtiddlers.
Notes:
- The tagging is not occurring
- This demonstrates creating tiddlers by edit
- A temporary tiddler is “created by simply editing”, the create button actually renames this and sets various parameters on button click so no actioncreate tiddler is used…
- This creates the subTiddler and opens it below (without navigation).