Hi Mohammad,
An alternative approach - requires all numbers to be zero padded to fixed
number of digits. Assuming 3 digits:
\define newTitle() myTiddler-{{{[tag[myTag]removeprefix[myTiddler-]sort[]
last[1]add[1]addprefix[0000]split[]last[3]join[]]}}}
\define newTiddler()
<$wikify name="myTitle" text="<<newTitle>>" >
<$action-createtiddler $basetitle=<<myTitle>> tags="myTag" />
</$wikify>
\end
This should always increment the title with the largest number and is not
affected by deleting other tiddlers.
Regards,
Mal
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/026903ee-402a-49fe-ad54-156467cdb28a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.