\define journalLogButton()
<$edit-text tiddler="$:/state/new-journal-log-title" tag="input" default=""/>
<$button><$action-sendmessage $message="tm-new-tiddler" title=<<now "YYYY-0MM-0DD $(titleSuffix)$ ">> tags="Journal" journal-type="log" year=<<now "YYYY">> month=<<now "0MM">> day=<<now "0DD">>/>New log</$button>
\end
<$set name="titleSuffix" value={{$:/state/new-journal-log-title}}><<journalLogButton>></$set>
I am trying to create a shortcut to create a bunch of different journal-types. They will have different template-text, titles and so on.Mostly, the title will contain a suffix coming from an <$edit-text, but they also a macro <<now>>.Below is what I got so far, it works, but the text-box looses focus after a keypress. I think I am hitting the issue @ https://github.com/Jermolene/TiddlyWiki5/issues/341 (from 2014), but I'm not sure.Anyone got any idea how to solve this? Or maybe there is a plugin around that does what I want instead?
\define journalLogButton()
<$button><$action-sendmessage$message="tm-new-tiddler"title=<<now "YYYY-0MM-0DD $(titleSuffix)$ ">>tags="Journal"journal-type="log"year=<<now "YYYY">>month=<<now "0MM">>day=<<now "0DD">>/>New log</$button>\end<$edit-text tiddler="$:/state/new-journal-log-title" tag="input" default=""/><$set name="titleSuffix" value={{$:/state/new-journal-log-title}}><<journalLogButton>></$set>