How to have a path/title shortener in TiddlyWiki? This is similar to URL shortener (e.g. Shortened URL (shorturl.at))
Usecase:
There are templates developed by community members where they are distributed in Plugins where titles are very long. If there is a path/title shortener we use can use them easier.
Examples 1
Instead of : {{myTiddler || $:/plugins/this-publisher/that-plugin/templates/pretty}}
user can use just: {{myTiddler || su.pretty }}
here su
is just a suggested prefix like https://shorturl.
when using shortener url.
Examples 2
Instead of : <$list filter="[tag[myTags]]" template="$:/plugins/this-publisher/that-plugin/templates/pretty" />
user can use just <$list filter="[tag[myTags]]" template="su.pretty" />
here su
is just a suggested prefix like https://shorturl.
when using shortener url.
Remarks
- It is known that one can create a new tiddler (e.g.
pretty
) with short title and put{{$:/plugins/this-publisher/that-plugin/templates/pretty}}
as text . Then use renamed/aliases template like{{myTiddler || pretty }}
- This is not good because of maintainability and the manual work
- It is known that plugin developers can include template like
pretty
without namespace.- This is not recommended and will cause if several plugins share the same name as
pretty
- This is not recommended and will cause if several plugins share the same name as
- This may be solved using alises, so a tiddler with a very long title can have aliases. But this is not supported by TiddlyWiki yet.