Twin tiddlers

994 views
Skip to first unread message

Alberto Molina

unread,
Feb 8, 2014, 11:37:32 AM2/8/14
to tiddl...@googlegroups.com
Hi everyone,

I want to create twin tiddlers or mirror tiddlers or clone tiddlers.

What's that? Different tiddlers (with different title) that look exactly the same in view mode: same title, same tags, same text, same fields.

What for? As a time saver. I want different ways to refer to the same tiddler without needing to always specify its exact title inside the brackets.

For instance, I would like the links: [[Darwinism]], [[darwinism]], NeoDarwinism, NaturalSelection, [[natural selection]], [[theory of evolution]] all refer to the same tiddler (or different twin tiddlers with the same content in view mode) without needing to specify: [[darwinism|Darwinism]], [[NaturalSelection|Darwinism]], [[theory of evolution|Darwinism]], etc.

How to do that? 
  1. As a first step, I can imagine two solutions to say which tiddler is a twin and which is the "original" (the one I want to see in view mode)
    • using a field called "twin" or "mirror" whose content is the title of the "original" tiddler.
    • using a list field in the "original" tiddler with a list of its twins.
  2. As a second step, it would be necessary to change the ViewTemplate in order to display the content of the "original" tiddler each time I open one of its twins.
(I really don't know how to do this second step because I barelly understand the content of $:/core/ui/ViewTemplate)

One shortcomming I see with this method is that the filters "tagging", "backlinks", etc., will not follow the mirroring. I think it is still possible to see how many tiddlers are tagging or refering to the original tiddler through its twins, but it would need a more complex filtering.

What do you think about this idea?

Alberto
Message has been deleted

Alberto Molina

unread,
Feb 8, 2014, 12:09:49 PM2/8/14
to tiddl...@googlegroups.com
How to do that? 
  1. As a first step, I can imagine two solutions to say which tiddler is a twin and which is the "original" (the one I want to see in view mode)
    • using a field called "twin" or "mirror" whose content is the title of the "original" tiddler.
    • using a list field in the "original" tiddler with a list of its twins.
  2. As a second step, it would be necessary to change the ViewTemplate in order to display the content of the "original" tiddler each time I open one of its twins.
(I really don't know how to do this second step because I barelly understand the content of $:/core/ui/ViewTemplate)

Another solution, easier for the end-user but that may require changes to the core, would be to have just one tiddler with a list field for alternate titles.

This wày "Tiddler one" could have as alternate titles: tiddler one, TiddlerOne, First tiddler, first tiddler, …

whatever

unread,
Feb 8, 2014, 12:37:34 PM2/8/14
to tiddl...@googlegroups.com
Hi!

LinkifyPlugin (x) should do exactly what you want, without a whole bunch of additional tiddlers.

(1) http://linkify.tiddlyspot.com/
w

Jeremy Ruston

unread,
Feb 8, 2014, 12:44:16 PM2/8/14
to TiddlyWiki
Hi Alberto,

The feature you describe is on the roadmap for 1.0 under the name "tiddler aliases". The idea is to be able to allow multiple titles that refer to the same tiddler.

Best wishes

Jeremy


--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

Eric Shulman

unread,
Feb 8, 2014, 1:13:58 PM2/8/14
to tiddl...@googlegroups.com
On Saturday, February 8, 2014 9:37:34 AM UTC-8, whatever wrote:
LinkifyPlugin (x) should do exactly what you want, without a whole bunch of additional tiddlers.
(1) http://linkify.tiddlyspot.com/

Although Alberto didn't specify [TW5] in the subject, he referred to "$:/core/ui/ViewTemplate" in his question.  Thus, it's apparent that he's asking about TW5... and  LinkifyPlugin is a TWC plugin, so that solution does not apply here.

-e

whatever

unread,
Feb 8, 2014, 1:57:24 PM2/8/14
to tiddl...@googlegroups.com
Oops, I missed that. You're right, of course.

Stephan Hradek

unread,
Feb 8, 2014, 2:16:43 PM2/8/14
to tiddl...@googlegroups.com, jeremy...@gmail.com


Am Samstag, 8. Februar 2014 18:44:16 UTC+1 schrieb Jeremy Ruston:
Hi Alberto,

The feature you describe is on the roadmap for 1.0 under the name "tiddler aliases". The idea is to be able to allow multiple titles that refer to the same tiddler.

It's already possible. See http://tw5magick.tiddlyspot.com and search for "Aliases"… ;)
 

Alberto Molina

unread,
Feb 8, 2014, 3:33:53 PM2/8/14
to tiddl...@googlegroups.com
Although Alberto didn't specify [TW5] in the subject, he referred to "$:/core/ui/ViewTemplate" in his question.  Thus, it's apparent that he's asking about TW5... and  LinkifyPlugin is a TWC plugin, so that solution does not apply here.

Oops, I forgot to mention [TW5] in the subject, sorry! 

It's already possible. See http://tw5magick.tiddlyspot.com and search for "Aliases"… ;)

Stephan, you're a great magician!    

Alberto

Jeremy Ruston

unread,
Feb 9, 2014, 3:54:49 PM2/9/14
to Stephan Hradek, TiddlyWiki

It's already possible. See http://tw5magick.tiddlyspot.com and search for "Aliases"… ;)

I salute your cunning once again, that's absolutely brilliant.

Best wishes

Jeremy

Andy Unrein

unread,
Feb 9, 2014, 8:54:32 PM2/9/14
to tiddl...@googlegroups.com
This is a great feature which I want to deploy in my wikis. I'm still on TWC, but I plan to migrate sometime this year.

I've thought of a need that seems related. I don't know if it should be a separate feature, or done with aliasing.

My usual convention is to name tiddlers in lowercase (I almost never use CamelCase.) My later references to them occur in natural sentence flow, sometimes at the beginning of a sentence when capitalization is needed. I would like a way to selectively make tiddler links that are case-insensitive. Perhaps with a single character at the beginning of the tiddler reference? (one that's currently unused in TW syntax.)

Example with a tiddler named life --

Case-insensitive link:
[[¿Life]] imitates art.
This WikiText would link to the tiddler life without having to type [[Life|life]]
I couldn't think of an unused character; implement with a more typical ASCII character than ¿
The use of a prepending character for this has some consistency with the ~ that suppresses auto-linking mixed case.

I think there could be other scenarios, apart from initial letter capitalization, where this may be useful.

As an alternative, various capitalizations could be stored as aliases, using Stephen's functionality. What seems the cleaner approach, both for the end-user and the core architecture?

Jeremy Ruston

unread,
Feb 10, 2014, 11:11:45 AM2/10/14
to TiddlyWiki
My usual convention is to name tiddlers in lowercase (I almost never use CamelCase.)  My later references to them occur in natural sentence flow, sometimes at the beginning of a sentence when capitalization is needed.  I would like a way to selectively make tiddler links that are case-insensitive.  Perhaps with a single character at the beginning of the tiddler reference? (one that's currently unused in TW syntax.)

That's pretty much the use case that aliases are intended to help (the other being dealing with plurals, so "tiddler" and "tiddlers" all go to the same tiddler.

The trouble with case insensitive links is that they can be ambiguous; what should "life" match if we've got tiddlers called "LIFE" and "Life"?
 
Best wishes

Jeremy


Example with a tiddler named life --

Case-insensitive link:
[[¿Life]] imitates art.
This WikiText would link to the tiddler life without having to type [[Life|life]]
I couldn't think of an unused character; implement with a more typical ASCII character than ¿
The use of a prepending character for this has some consistency with the ~ that suppresses auto-linking mixed case.

I think there could be other scenarios, apart from initial letter capitalization, where this may be useful.

As an alternative, various capitalizations could be stored as aliases, using Stephen's functionality.  What seems the cleaner approach, both for the end-user and the core architecture?
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.

un.ol...@gmail.com

unread,
Sep 2, 2015, 9:41:51 AM9/2/15
to TiddlyWiki, jeremy...@gmail.com

It's already possible. See http://tw5magick.tiddlyspot.com and search for "Aliases"… ;)
 

Cannot make it work with TW5 version 5.0.12-beta or 5.1.9 

It is me or something broke this nice magick you made before these versions?

Olivier.

Birthe C

unread,
Sep 2, 2015, 10:24:31 AM9/2/15
to TiddlyWiki, jeremy...@gmail.com
Hi Olivier,

Maybe you can use Tobias Beers solution http://tobibeer.github.io/tb5/#Alias%20Links



Birthe

Olivier

unread,
Sep 2, 2015, 11:22:18 AM9/2/15
to tiddl...@googlegroups.com
On Wed, Sep 2, 2015 at 4:24 PM, Birthe C <strikke...@googlemail.com> wrote:
Hi Olivier,

Maybe you can use Tobias Beers solution http://tobibeer.github.io/tb5/#Alias%20Links


Thanks, it works with version 5.1.9 but not with my  5.0.12-beta with MathJax and it seems MathJax does not work with more recent versions... I am stuck!

Birthe C

unread,
Sep 2, 2015, 12:01:26 PM9/2/15
to TiddlyWiki
Hi Olivier,

I do not have any TW version 5.012-beta, but I just tried the solution from http://tw5magick.tiddlyspot.com/
In TW version 5.010. That worked. You need the tidder unwikified from the same link too.


Birthe

Olivier

unread,
Sep 7, 2015, 5:28:33 AM9/7/15
to tiddl...@googlegroups.com

Hi Birthe,

On Wed, Sep 2, 2015 at 6:01 PM, Birthe C <strikke...@googlemail.com> wrote:
I do not have any TW version 5.012-beta, but I just tried the solution from http://tw5magick.tiddlyspot.com/
In TW version 5.010. That worked. You need the tidder unwikified from the same link too.

Yes, the problem is not the version of Tiddlywiki but MathJax. It might be the reason why Katex is the officiel LaTeX plugin...

Thanks for your help,

Olivier. 

BJ

unread,
Sep 7, 2015, 6:22:29 AM9/7/15
to TiddlyWiki
it seems that mathjax can be made to work with latter version of tw5:

https://groups.google.com/forum/#!searchin/tiddlywiki/MathJax|sort:date/tiddlywiki/PZVHoq6tGUQ/UiuPX4d7hNIJ

cheers
BJ

Olivier

unread,
Sep 7, 2015, 11:11:35 AM9/7/15
to tiddl...@googlegroups.com
It works !!! Thanks :-)

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/YlKBBl1Jdww/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.

un.ol...@gmail.com

unread,
Sep 7, 2015, 12:35:22 PM9/7/15
to TiddlyWiki
BTW there are " missing in Tobias' alink macro:


it should be

\define alink(target)
<<a: "$target$">>
\end

I couldn't see his email on his web site... 

Tobias Beer

unread,
Sep 17, 2015, 7:58:42 AM9/17/15
to tiddl...@googlegroups.com
Thanks, updated: $:/.tb/macros/alink @ tb5
About time I integrated a little contact form.

Best wishes,

— tb

Thomas Woite

unread,
Feb 5, 2016, 6:50:50 AM2/5/16
to TiddlyWiki
Hi all,
I really do like this alias appraoch. Tried both version (from Stephan and Tobias)
and both work great for me. One thing i realized, that this dynamic kind of links does not show up
when using the backlinks filter operator on the target tiddler.

So my problem is, I cant figure out which tiddler are refering to a target using this alias mechanism. I am guessing
this is probably because this macros are executed on rendering time.
Could an additonal transclusion be a workaround for this issue? I tried to figure something out, but was unable to succeed so far.

I tried something like
\define alias(i_alias, i_text)
<$list filter="[field:alias/\|$i_alias$\|/(i)sort[title]limit[1]]">
   
{{||MyTemplate}}</$list>
\end

//MyTemplateTiddler

<$link to={{!!title}}>MyLinktext</$link>
But it did not change anything.

if am writing the link widget like
<$link to="MyTiddler">Linktext</$link>

backlings do work, probably because its an explicite reference.

Best,
Thomas

Tobias Beer

unread,
Feb 5, 2016, 9:08:53 PM2/5/16
to TiddlyWiki
Hi Thomas,
 
and both work great for me. One thing i realized, that this dynamic kind of links does not show up
when using the backlinks filter operator on the target tiddler.

Unfortunately that is a constraint that will possibly never be overcome,
at least I think it would require to specifically declare which dynamic links
to index as references and which not to.
I don't know of any such implementation atm.

Best wishes,

Tobias.
Message has been deleted

PMario

unread,
Dec 18, 2017, 8:55:10 AM12/18/17
to TiddlyWiki
On Saturday, February 8, 2014 at 5:37:32 PM UTC+1, Alberto Molina wrote:
For instance, I would like the links: [[Darwinism]], [[darwinism]], NeoDarwinism, NaturalSelection, [[natural selection]], [[theory of evolution]] all refer to the same tiddler (or different twin tiddlers with the same content in view mode) without needing to specify: [[darwinism|Darwinism]], [[NaturalSelection|Darwinism]], [[theory of evolution|Darwinism]], etc.

Hi Alberto,

I think the uni-link "alias" concept is close enough, to that, what you describe here. So it seems to be worth, to resurrect this topic ...

The project was re-started by a thread from Diego Mesa here in the group, where he used a plugin from TobiBeer. Which uses a differnt "list - format" to store aliases. ... BUT TW 5.1.14 introduced the "enlist" operator, which aligned my approach, much closer to the core.

Jeremy responded here in this thread, that your description is a planned extension to the core, "under the name "tiddler aliases". So I'm confident enough, to use the field-name "aliases" with the plugin.

have fun!
mario



Reply all
Reply to author
Forward
0 new messages