Thank you Mal,
This is much better than Tid-1, Tid2,...

Added to TW-Scripts.

-Mohammad

On Saturday, February 23, 2019 at 6:54:50 AM UTC+3:30, Mal wrote:
>
> 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/86508310-8800-4f84-8542-37631be8ea16%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to