Autocompletion when transcluding: how to?

98 views
Skip to first unread message

IvanPsy

unread,
Dec 22, 2020, 1:16:19 AM12/22/20
to TiddlyWiki
Greetings,

Is there a way to have the autocompletion feature when transcluding a Tiddler into another one?

I already use autocompletion for backlinks, but I also use transclusion a lot, and always remebering the exact name of the Tiddler is unhandy.

TW Tones

unread,
Dec 22, 2020, 8:20:10 PM12/22/20
to TiddlyWiki
Ivan,

Yopu could make a modified version of the existing EditorToolBar "Link" button. This inserts the tiddler name inside [[braces]], it could be modified to use {{ }}
However once inserting a [[tiddlername]] and highlighting it, the  EditorToolBar "[[*]]" button will remove the [[]] and the "{{*}}" will add curly braces. 

Regards
Tones

IvanPsy

unread,
Dec 23, 2020, 9:16:32 AM12/23/20
to TiddlyWiki
Ok Tones sounds tricky.
I evaluate, since autocompletion on backlinks is also important to me ;-)

PMario

unread,
Dec 23, 2020, 11:19:28 AM12/23/20
to TiddlyWiki
Hi Ivan,
I did have a short look at the existing "Create wikitext link CTRL-L" button with "auto completion". It should be simple to implement, but we would need to change the UI a little bit. .... And there is no time left to get it into TW V5.1.23 ...

So it seems to be much easier to crate a completely new function as a plugin based on the existing function.

The CTRL-L function allows to select some text and then insert a link, using the text as "pretty link". ... For transclusions, this text doesn't make sense, so the question is, what should we do with the text.

 a)  Replace it
 b)  Insert the transclusion after the text and leave the text unchanged.

I would go for b). .. Just some thoughts!!

-mario

Sylvain Naudin

unread,
Dec 23, 2020, 2:52:18 PM12/23/20
to TiddlyWiki
Hi Mario,

Sound interesting option.
Well, we don't need to select text to do CTRL-L and insert [[link]], so don't need to worries about it, no ?

And if by mistake user have selected text, yes I agree, insert after.

Regards,
Sylvain
Reply all
Reply to author
Forward
0 new messages