mklauber / tiddly-aliases

Implementation of Wikipedia style aliases and redirects for non existing tiddlers.
2 stars 1 forks source link

Proposal to correct the issue with Missing tiddler #3

Open SonephetR2 opened 3 years ago

SonephetR2 commented 3 years ago

Hi there!

This corrects https://github.com/mklauber/tiddly-aliases/issues/1 & https://github.com/mklauber/tw5-plugins/issues/2.

As a reminder, the 'Missing tiddler' tool was populated with aliases, limiting its usefulness. This workaround adapts the filter used in [[$:/core/Filters/Missing]] by using the "enlist-input" function, which is available only on TiddlyWiki 5.1.23 and above. Behaviour is unchanged on prior versions as the new part of filter is parsed in a non-breaking way when the function doesn't resolve (tested on your current tw5-plugins TiddlyWiki, which is running on 5.1.22).

I also added an extensive Readme file as there was none.

Thanks for your great plugin :)

SonephetR2 commented 3 years ago

Hi again,

I just added a tool adapted from Mat von TWaddle's AliasTids's AliasesOverview tool – http://aliastids.tiddlyspot.com/. The $:/Aliases tool makes it easy to add an "aliases" field to tiddlers without aliases, to edit the aliases of these tiddlers or any others that have been modified during the session, as well as to investigate any missing tiddlers.

It bears noting that this is my absolute first pull request so please let me know if I misstep in any way. The core filters commit creates a shadow tiddler and I am not fully aware of the implications. As for the Aliases tool works neatly but is essentially an adaptation of Mat's work to yours and I couldn't find him on Github. If you feel the addition seems worthwhile, I'll email him to make sure that attribution is enough as he didn't explicitly indicate any license in his plugin (nor did you by the way!).

Best, R²