I don't normally hang around in the Google group, so I didn't see this 
until now. I read what you wrote several times but I'm still not clear on 
what Relink is doing wrong, or what it's supposed to be doing but isn't.

You don't still need help, do you? 

-Flibbles
On Thursday, October 22, 2020 at 3:46:47 AM UTC-4 bimlas wrote:

> You can also create IDs based on a counter, so you can be sure to avoid 
> name conflicts, and each tiddler will be given a unique ID (even one that 
> does not have a created field). In this case, also modify the body of the 
> generateID function and the filterAlreadyRenamed filter.
>
> var filterAlreadyRenamed = "!regexp[^ZK\\d{8}$]";
>
> // ...
>
> var lastId = 
> (parseInt($tw.wiki.filterTiddlers("[regexp[^ZK\\d{8}$]nsort[]last[]removeprefix[ZK]]")[0])
>  
> + 1) || 1;
> function generateId(fields) {
>   var idLength = 8;
>   var idPrefix = "ZK";
>   var id = lastId.toString();
>   lastId += 1;
>   while (id.length < idLength) id = "0" + id;
>   return idPrefix + id;
> }
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7ef4fcaa-baa7-4d02-983c-9f0634e88e4dn%40googlegroups.com.

Reply via email to