Mark,
I was thinking along those lines as well, I love an algorithmic challenge.
Some thoughts
In addition to your suggestion a "New Tiddler macro" or current tiddler
"set ID" that assigns an ID in an additional field at *creation time* (see
alternate below) could be used when and only when a tiddler needs to be
referenced.
An Edit toolbar helper like the current insert {{-}} or [[-]] or excise
tool that inserts the <<link ID#>> from the *selected* tiddler name would
also make this almost transparent.
I just realised we already have and almost certainly unique identifier -
creation date. On Creation, or before using as a link Extract that to the
millisecond check no other tiddler exists with the same creation date (very
unlikely with milliseconds) but if something else does just add 1
millisecond until you find a unique creation date. Creation dates as a rule
stay the same from that point forward, even when dragged to another Wiki.
We can use this as the ID for references. Simply add a field to indicate a
database name if the plan is to copy move to other wikis, and add this to
the ID
Regards
Tony
On Thursday, April 19, 2018 at 1:10:34 AM UTC+10, Mark S. wrote:
>
> If you're going to fix the problem with macros, then you could just create
> your own ID field with a regular distinct pattern ("A0001","A0002",ktc)
>
> Then use a macro like (though more sophisticated than):
>
> \define link(id desc) <$list
> filter="[search:id[$id$]limit[1]]"><$link>$desc$</$link></$list>
>
> And make your references like <<link "A0001" "Notes re comparison Disc
> World and Moby Dick">>
>
> Of course, then you have to remember to assign a unique id to anything
> that you plan to link to.
>
> -- Mark
>
--
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/482205ac-2dbe-4c78-a315-d26ec1d90722%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.