On Tuesday, January 23, 2018 at 6:45:19 PM UTC+1, Diego Mesa wrote:
>
> Great plugin.
>
Thx,
> Use it everyday. One great feature is that by using [[Undefined Alias|?]],
> that link is still shown, and is shown in italics as missing. This solves a
> major problem for me with the previous version!
>
Yea. ... Implementing this feature and better link styling was needed, to
have a proper plugin. The backside is, that it, at least, trippled the
ammount of code needed. Which also increases complexity. ...
> Since all "missing alias" links will naturally link to the tiddler titled
> "?", I thought it would be useful to do one or more of the following:
>
It's great, that it feels natural, how the code works atm ;)
>
> - Since we can style other links in this plugin, perhaps we should be
> able to style all links to the ? tiddler appropriately.
>
> I had 2 choices here.
- Create a link to the same tiddler, that contains the code. .. Which
feels strange, if you click the link and not much happens
- Create a link to a "?" tiddler ... Which opens a tiddler titled: ? and
activates a scroll animation.
I choose the second possibility, since I thought, it would be more obvious
for the user, that something - "the alias" is missing.
The link has 2 existing classes assigned, which can be styled: tc-tiddlylink
tc-tiddlylink-missing or tc-tiddlylink tc-tiddlylink-resolves
... but you are right. It may collide with the default styles. .. *Need to
think about it*.
------------
I could have added a ? tiddler, with the following code:
<<list-links "[all[aliases]]">>
or
{{$:/plugins/wikilabs/uni-link/ui/MoreSideBar/Aliases}}
I decided, to not include the ? tiddler, which *I should rethink now. *...
> - Use the "?" tiddler to list all backlinks which are the "missing
> alias" links.
>
>
[[test|?]] ... Is not a prettylink anymore. .... |? is now the indicator
for an alias, and it is "eaten" by the parser.
Searching for "missing aliases" will be performance mess. Since you allways
have to touch every tiddler, since any one can have the alias field. This
function can't be cached, while "[is[alias]]" can, which is performant.
We may be able to make the "missing alias" link more visible, so they can
be fixed immediately.
> The second point revealed what I think is bug:
>
>
> If you go to tiddlywiki.com and create a new tiddler called "test" and
> type [[test|?]], it renders the link to the ? tiddler. If you then go to
> info on that missing tiddler and click References, you see the link to the
> "test" tiddler as expected.
>
Those 2 functions can't be compared anymore. It's not the same thing. So
it's a feature request ;)
> If you try this on: https://wikilabs.github.io/editions/uni-link/ you
> will see that the missing ? tiddler does not show any links at all.
>
I know. Will have a look.
have fun!
mario
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/66dd9800-fcaf-4010-9ae0-fb1c558b8d6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.