Auto Tiddler Tag Linking.

230 views
Skip to first unread message

tobaisch

unread,
Nov 27, 2017, 12:42:37 PM11/27/17
to tiddl...@googlegroups.com
Hello,

i am looking for a redirect macro or plugin for TW5 to mark words that i want to be auto-linked to existing tiddlers they named exactly like the words in the text.
I dont like sticking [[brackets]] all over the place specially after i copyed long text.
I dont like using CamelCase-WikiWords too.

thx

Ste Wilson

unread,
Nov 27, 2017, 5:10:10 PM11/27/17
to TiddlyWiki
I've dreamed about this before. There was an auto tag pill plugin somewhere on here.
For my use case I'd like something that linked the first use of a word if it was already a tiddler title.... Of course this is complicated by the fact that my titles have first letter capitalised but the first instance of that in any given tiddler won't have that.. And.. Didn't Mario have a caps agnostic plugin :)...

tobaisch

unread,
Nov 28, 2017, 6:58:32 AM11/28/17
to TiddlyWiki
For the old TW Classic there was http://linkify.tiddlyspot.com/.
Exactly this one for the new TW5 i am searching.
or something similar :)

tobaisch

unread,
Nov 28, 2017, 7:13:29 AM11/28/17
to tiddl...@googlegroups.com
or even a plugin that automatically link words they are in a whitelist.
this one is maybe
easier.
for example:
In my whitelist are two words: "nice" & "day"
I have a lot of tiddlers and exactly two tiddlers with the title: "nice" & "day".
I write the following text in a new tiddler. Today is a nice day and that is an example.
After saving the new tiddler, only the words "nice" and "day" in this text are automatically linked to this tiddlers nice and day.
the word nice to the tiddler with the title nice and

the word day to the tiddler with the title day, of course separately. :)

TonyM

unread,
Nov 28, 2017, 4:47:32 PM11/28/17
to TiddlyWiki
Tobiasch,

Somewhat similar to your need, I did the following

I ham happy to have markup in my wikitext, so I created Question and answer CSS ".q and .a " which I uses like this

;.q This is the Question
:.a This is the answer if available

And you could use @@.q The Question @@ or a white list.

I then added the following to a tiddler tagged $:/tags/viewtemplate

<$list filter="[all[current]search[.q ]limit[1]]" variable=null>
@@.q Tiddler contains (
<$list filter="[all[current]search[.q ]]">
<$count filter="[all[current]search[.q ]]"></$count>+
</$list>) Question(s) @@
</$list> <$list filter="[all[current]search[.a ]limit[1]]" variable=null>
@@.a Tiddler contains (
<$list filter="[all[current]search[.a ]]">
<$count filter="[all[current]search[.a ]]"></$count>+
</$list>) Answer(s)@@
</$list> 

This detects and notifies the user if Questions and answers are contained.

Perhaps you could use the search filter, and have the result be a link to the key word?

Its not a full answer, but a possible path to resolution.

Regards
Tony

tobaisch

unread,
Nov 28, 2017, 6:15:23 PM11/28/17
to TiddlyWiki
Oh thank you Tony,
that sounds really good, but I'm an enduser and have no idea how to somehow implement your code here. :)

TonyM

unread,
Nov 28, 2017, 7:47:56 PM11/28/17
to TiddlyWiki
I understand, however when you say;

I dont like sticking [[brackets]] all over the place specially after i copyed long text.
I don't like using CamelCase-WikiWords too.

  • You are in someways ignoring the features available to you. Which I may add, exist in many other markups like wikipedia. The thing is it is how we define and  trigger wikilinks. In some ways how else will you indicate the item deserves treatment as a link?
  • If you typed [[day]] not only would clicking it from anywhere create (or open an existing) tiddler by that name, but using the info panel on relevant tiddlers you can find everywhere it is mentioned.
  • Also using the excise tool in the editor you could type in a definition decide to cut it out and create the day tiddler, which you can either link to [[day]] or include the contents of day in your tiddler {{day}}
  • Once your tiddler exists, in the editor you can use the link item to search for and insert a link to any tiddler. 
  • I would then tag the day tiddler and others perhaps as glossary then you could list in alphabetical order all definitions in glossary tiddlers.
  • If you needed to link with alternate caps just do this [[Day|day]]  If you want to avoid CamelCase do this [[camel case]] or [[camel case|CamelCase]]
  • If you have a lot of uses of a keyword where you want to link, use search and replace to activate the links replace " day " with " [[day]] " 
  • If you look around you can even find tools to put such words as items in your footer, or with popup definitions on hover.
  • Finally in many document writing standards it is the first use of the word that includes the reference to its definition not subsequent uses.
Of course you can find all tiddlers containing day as follows

<<list-links filter:"[all[tiddlers]search[day]]">>

Which will give you a list of tiddlers containing day, the opposite of what you are asking.

My point is as much as you don't like [[brackets]] they serve a serious and valuable service that is a key feature of a Wiki, and I think you will come to love them.

Regards
Tony

tobaisch

unread,
Nov 28, 2017, 9:46:41 PM11/28/17
to tiddl...@googlegroups.com
Thanks Tony,
I understand your intention very well.
That's all clear to me, really.
Thanks for the many tips and hints.
But you have not explained this one special case.
e.g.
I have 100 Tiddlers and a text copied with 3000 words.
How can I find the words that match to the titles of the tiddlers and link them?
If you write new text, it may all work very well, but it is difficult if you copied an already finished text.
e.g. when you like to switch from MS-Word to Tiddler.
i have a lot of text and like to switch comfortable and effective.

a colored marking of the potential words would also be a possibility.
then you could even think about whether it is worthwhile to link.
one click and a long text is parsed for matching words and marked.
does it sound practical or?

regards
tob

TonyM

unread,
Nov 29, 2017, 1:28:05 AM11/29/17
to TiddlyWiki
Tob,

So you have one 3000 word tiddler, and 100 other tiddlers that are named according to words found in the 3000 word tiddler?

If so how were the 100 tiddlers created?

If you want to change every occurrence of 100 different words in the 3000 word tiddler to links, following those links may be easy but returning will only bring you to the 3000 word tiddler, not its place in it.

Please clarify/confirm above.

If faced with the same issue (as I understand it)  I would look at creating a macro in NotePad++ to search for each item in the 100 word list (with matching tiddlers) and replace it eg "searchword or phrase" and replace with "[[searchword or phrase]]"  and since the tiddler "searchword or phrase" exists each will be come a link when pasted back into the 3000 word tiddler.

But I imagine you could find a way to list every word in the 3000 word tiddler, and testing if a tiddler of that name exists, if not pass the word through, if it does include [[ ]] in the output (but the tiddlers must not have spaces in there title).

 Just a brain dump

Tony

tobaisch

unread,
Nov 29, 2017, 10:18:49 AM11/29/17
to tiddl...@googlegroups.com
Tony,
thx tony!
Of course the numbers are only an example. I did not count exactly. That's pretty clear, I thought. I do not want to lead a fundamental dissent here, then I would have asked the question differently.
I have a specific problem and I am just looking for a solution.

1st variant:
I am looking for a plugin like the http://linkify.tiddlyspot.com/. but for TW5.
It exists and works already, but unfortunately not yet for TW5.

2nd variant:
To avoid unnecessary parsing of the text, I have the OneClick idea. So only on request to parse the text and compare with the existing Tiddlers. Then convert the words to links or just select and highlight them and then convert them one by one.

3rd variant:
An extra tiddler containing a whitelist (a free choice of words) that will be formatted as [[*]] automatically or per click in each new tiddler.

But back to your post and my answer:


So you have one 3000 word tiddler, and 100 other tiddlers that are named according to words found in the 3000 word tiddler?
If so how were the 100 tiddlers created?

The many Tiddler course was created individually. Individually and laboriously. Of course, they can not yet be linked to the long article, since this article did not exist before, since I've just discovered him now and now wants to bring together with my other Tiddlers. Matching means for me. Copy and check if the content (words) match my already written Tiddler and then link.
That's a normal concern, right?

If you want to change every occurrence of 100 different words in the 3000 word tiddler to links, following those links may be easy but returning will only bring you to the 3000 word tiddler, not its place in it.

I do not want to go back.

The suggestion from you with the macro sounds quite good, but it is not practical for me, because I'm just an ordinary end user and can not really program. :)
Or I'm just too stupid to put your tips into action here.
Probably the latter. :(
I'm looking for a simple solution to make working with Tiddler easier.

With so nothing else remains usual for the time being than to wait until Linkify is adapted to TW5 or another developer reads here and has mercy and offers a other ready-made solution.

regards
Tob

 

Message has been deleted
Message has been deleted
Message has been deleted

Ste Wilson

unread,
Nov 29, 2017, 1:56:11 PM11/29/17
to TiddlyWiki
Just to derail slightly but...
When I read 'but using the info panel on relevant tiddlers you can find everywhere it is mentioned.' my reaction was EH? YOU CAN... HMMM let's have a look!

I think I'd ignored the info button completely.
Thanks :)

TonyM

unread,
Nov 29, 2017, 7:53:23 PM11/29/17
to TiddlyWiki
Ste,

The context is important. If the current tiddler is a link within other tiddlers, it will be listed under Info > Reference, you can also see what it is tagging, if it has a list or is in a list.

Regards
Tony

tobaisch

unread,
Dec 6, 2017, 5:49:43 PM12/6/17
to TiddlyWiki
"Just to derail slightly but..."
You are crashed the maintopic!

Reply all
Reply to author
Forward
0 new messages