Petr,
I am also not a coder. I just found the problem to be really important and
took the opportunity to learn more about the TW mark-up language by trying
to do something which seemed to be doable. With some dedicated some time
and patience, this "tool" resulted mostly from browsing the official TW
website, searching the forum, putting other peoples' code together and from
quite a lot of trial and error. If it would contribute a little bit, as
Jeremy has put it, to the "experimentation" regarding this topic, I would
be more than happy :)
If you are worried that your wiki could become corrupt as a result of
imported solutions, I would say that the approach I proposed is quite
robust, because:
The only thing I actually used was the good old ListWidget: <$list
filter=[field:id[qqu99yie1]!has[draft.of]] /> (see the first post of this
thread by Felix in 2014!). So, as long as TW supports the ListWidget and
the usage of fields, it will work. If you do not want to "pollute" your
wiki with extraneous macros, you could replace "text=<<linktoid2 $(idvar)$>>"
by "text=<<linktoid $(idvar)$>>" in the "insert-linktoid" tiddler. Then
instead of <<linktoid "tiddler's_id">> you would insert <$list
filter=[field:id[tiddler's_id]!has[draft.of]] /> (I chose to use the macro
just for a better readability) and you would be completely independent of
any extraneous macros! That is, as soon as you do not want to use the tool
anymore (for example, as soon as there is a solution in the core of TW to
incorporate UUIDs or equivalent), you could delete all of the four tiddlers
and your links would still work! Because the four tiddlers of the tool
would ONLY assist you in inserting the link <$list
filter=[field:id[tiddler's_id]]/>, and would not play any active role
afterwards.
What I personally like about this method, is that you can basically choose
how the IDs will look like: for its generation you can combine the
tiddler's creation date and its first title ("first title" means tiddler's
title just before you are about to create the first link to it) in almost
any combination you can imagine. Also, you retain great readability of the
wikitext!
For the future, I imagine TiddyWiki:
a) Retaining the enforced uniqueness of the title field.
b) Having for all practical purposes unique id field.
c) Choosing a special symbol to start ids with (e.g. #) and forbidding
starting titles with it.
d) Supporting both [[title]] and [[id]] for linking, as well as the ability
to refer to either title or id interchangeably (in any macro/widget, where
now you have to use the title as a parameter).
--
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/7b7a1e2e-8833-4e06-8513-441db8803b0c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.