I have a procedure called create-item
. It is used to create new tiddler with specific fields, etc.
\whitespace trim
\procedure full-path() $:/state
\function base-title() [<full-path>] [<type>] [<title>] :and[join[/]]
\procedure create-item(btncaption:"new item", type, title, tags)
<$button> <<btncaption>>
<$action-sendmessage $message="tm-new-tiddler" title=`${[<unusedtitle $(base-title)$>]}$` tags=<<tags>> />
</$button>
\end
<<create-item "My New Test" type:"macros" title:"mac" tags:"$:/tags/Macro">>
But the unusedtitle
does not work correctly and does not increment the title. It always create a new tiddler with
$:/state/macros/mac
Is this a bug?