[INTRO] uni-link plugin now includes an Alias links- and backlinks-mechanism

510 views
Skip to first unread message

PMario

unread,
Dec 16, 2017, 1:21:12 PM12/16/17
to tiddl...@googlegroups.com
Hi Folks,

This thread is outdated: Please go to: [INTRO] uni-link V1.0.0 thread.

Have fun!
mario

----------------

I did just push the latest version of the uni-link plugin, which now also includes a new Alias syntax.

I did create a new thread, since the other 2 are either related to uni-links or the aka-macros.

Uni-links and aliases now have backlinks, and you can create links to non existing aliases!

There is a lot of new stuff added including a new Intro-Video.

Important: ... uni-link plugin, contains a modified version of the aka-macro. If you use this macro, be sure you deactivate it and test the new implementation. Existing <<aka xxx>> calls should create backlinks now.

V 0.2.0 ... 2017.12.15

  • added: [[alias|?]] link syntax
    • using aka-makros for tiddler alias handling
  • added: Alias backlinks
    • open the tiddler (i)nfo area: References
  • added filter operators:
  • added: Right-Sidebar: More tab: "Aliases"
    • Sorted by Alias
    • Sorted by Tiddler Title
  • added: uni-link $:/ControlPanel setting
  • added: different colors for title, caption, subtitle and alias links

Feedback is very welcome!


Have fun!

mario

PS - If you like it: Support it :)



V 0.3.0 - 2018.01.27

  • add: styling possibility for missing aliases
  • improve: history and copyright

V 0.2.1 - 2018.01.27

  • fix: uni-link creates an unused a-element

Diego Mesa

unread,
Dec 16, 2017, 1:43:41 PM12/16/17
to TiddlyWiki
Thank you thank you Mario! This is great!

Diego

On Saturday, December 16, 2017 at 12:21:12 PM UTC-6, PMario wrote:
Hi Folks,

I did just push the latest version of the uni-link plugin, which now also includes a new Alias syntax.

I did create a new thread, since the other 2 are either related to uni-links or the aka-macros.

Uni-links and aliases now have backlinks, and you can create links to non existing aliases!

There is a lot of new stuff added including a new Intro-Video.

PMario

unread,
Dec 16, 2017, 1:52:18 PM12/16/17
to TiddlyWiki
On Saturday, December 16, 2017 at 7:43:41 PM UTC+1, Diego Mesa wrote:
Thank you thank you Mario! This is great!

:) ... Let me know, how it works for you!

-m

PMario

unread,
Dec 16, 2017, 1:55:06 PM12/16/17
to TiddlyWiki
IMPORTANT:

uni-link plugin contains a modified version of the "aka-macro"  So be sure, you have a closer look if you already use the aka-macro!

-m

Diego Mesa

unread,
Dec 16, 2017, 1:59:49 PM12/16/17
to TiddlyWiki
Hey mario, 

Quick question - how come on:


when I make a new tiddler with the following content:

[[GettingStarted]]


[[Why is uni-link needed?]]


[[History]]


[[Alias Examples]]


[[testing]]



GettingStarted renders the normal blue, while all the others are rendered in the dark navy? On my own personal TW Im seeing the following in my TableOfContents (attached), with the following content:


<div class="tc-table-of-contents">
<i class="fa fa-calendar fa-fw" aria-hidden="true"></i> <$link to=<<now "DDth MMM YYYY">>>''Daily Journal''</$link>
<br/>
<i class="fa fa-check-square-o fa-fw" aria-hidden="true"></i> ''<<now "[[Weekly Goals|Week WW - YYYY]]">>''
<br/>
<i class="fa fa-list fa-fw" aria-hidden="true"></i> ''[[Papers of Interest]]''
<br/>
<i class="fa fa-book fa-fw" aria-hidden="true"></i> ''[[Research Journal]]''
<br/>
<i class="fa fa-pencil-square-o fa-fw" aria-hidden="true"></i> ''[[Research Projects]]''
<br/>
<i class="fa fa-flask fa-fw" aria-hidden="true"></i> ''[[Research Areas]]''
<br/>
<i class="fa fa-user-o fa-fw" aria-hidden="true"></i> ''[[Personal Journal|Journal]]''
<br/>
<i class="fa fa-arrow-up fa-fw" aria-hidden="true"></i> ''[[Followup]]''
<br/>
 
<i class="fa fa-lightbulb-o fa-fw" aria-hidden="true"></i>  ''[[Ideas]]''
<br/>
<i class="fa fa-lightbulb-o fa-fw" aria-hidden="true"></i> ''[[Important Things I've Read]]''
<br/>
<i class="fa fa-book fa-fw" aria-hidden="true"></i> ''[[Books]]''
</div>


<!--<div class="tb5-fish">{{$:/.img/fish.svg}}</div>-->


Diego
toc.png

PMario

unread,
Dec 16, 2017, 3:43:22 PM12/16/17
to TiddlyWiki
Hi,

GettingStarted is a CamelCase tiddler. ... There is a problem atm, as discussed in the viedo.

-m


PMario

unread,
Dec 16, 2017, 3:45:55 PM12/16/17
to TiddlyWiki
Hi,

On my own personal TW Im seeing the following in my TableOfContents (attached), with the following content:

That's not a question. So I don't know, what to do with that info?

Have a look at the video, IMO it may answer some of your question.

-m

Diego Mesa

unread,
Dec 16, 2017, 4:58:52 PM12/16/17
to tiddl...@googlegroups.com
Hey Mario,

Sorry I was working off an earlier conversation. I thought this plugin wouldn’t style “normal” links. It would only style links that are either alias, caption or subtitle. 

--
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/VUSTzwV15Ag/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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/849822d2-ae22-4a21-af3a-2470f30f0c23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mat

unread,
Dec 16, 2017, 7:49:53 PM12/16/17
to TiddlyWiki
Very nice! Thank you Mario!

You point out that 

  • [[NaturaL sElEcTiOn|?]] ... not valid atm ... NaturaLsElEcTiOn
but interestingly that last part, sElEcTiOn, (which is not CamelCase), does work - even without it being in the aliases list in Darwinism. Maybe it's a feature and maybe it'll perform differently when CamelCase linking does eventually work, but for now I don't quite get why it works. No biggie, but interesting ;-)


<:-)

Diego Mesa

unread,
Dec 16, 2017, 8:03:04 PM12/16/17
to TiddlyWiki
Hey Mario,

Sorry I misunderstood - this plugin will have to necessarily modify the way links are handled, I was just confused because:

[[mylink|mytiddler]] is left normal - no styling applied but 
[[tiddler-without-a-caption-or-subtitle-or-alias]] - is indeed styled

I was not expecting that. Thank you for your work on this and the helpful video. 

Diego Mesa

unread,
Dec 16, 2017, 8:26:45 PM12/16/17
to TiddlyWiki
Just noting here - I am using a text editor to replace all of my old <<aka "alias with spaces">> links across all of my tiddlers with the new [[alias with spaces|?]] format that supports backlinks. In doing so, I realized that I was not correctly dealing with the " character, and was left with something like this:

[["alias with spaces"|?]] which resulted in the following:

<$list filter=""alias with spaces"]is[alias" variable=ali emptyMessage="alias with spaces"><$list filter="[enlist{!!aliases}regexp[^"alias with spaces"$(?i)]]" variable="dummy">"alias with spaces"<$list filter="[enlist{!!aliases}regexp[^"alias with spaces"$(?i)]]" variable="dummy">"alias with spaces"<$list filter="[enlist{!!aliases}regexp[^"alias with spaces"$(?i)]]" variable="dummy">"alias with spaces"<$list filter="[enlist{!!aliases}regexp[^"alias with spaces"$(?i)]]" variable="dummy">"alias with spaces"<$list filter="[enlist{!!aliases}regexp[^"alias with spaces"$(?i)]]" variable="dummy">"alias with spaces"</$list> </$list>

I would not say this a bug in the plugin, as I have incorrectly formatted a link. Just making note of this behavior here. 

Diego Mesa

unread,
Dec 16, 2017, 8:45:15 PM12/16/17
to TiddlyWiki
So out of lazyness I performed the change using the following two regular expressions:

This regex turned all `<aka something>>` into `[[something|?]]`

```
(?:<<aka )(.*?)(?:>>)
```

This left the old `"` though, so this one fixed that:

```
(?:\[\[\")(.*)(?:\"\|\?\]\])
```

See: 


for interactive explanations.

Best,
Diego

Mat

unread,
Dec 17, 2017, 7:50:25 AM12/17/17
to TiddlyWiki
@pmario

Maybe I misunderstand something but does uni-link introduce "subtitle" as a new field that basically is a caption field but with space separated words?

IMO the term subtitle is implicitly already taken for the $:/core/ui/ViewTemplate/subtitle i.e the line below the title. But if "implicitly used" is not enough, there is also a field explicitly named "subtitle" as used by the core as "The subtitle text for a wizard" according to this tiddler.

One idea for name for a space-separated caption field could be "spaced_caption" or similar.

<:-)

PMario

unread,
Dec 18, 2017, 5:20:26 AM12/18/17
to TiddlyWiki
On Sunday, December 17, 2017 at 1:50:25 PM UTC+1, Mat wrote:
Maybe I misunderstand something but does uni-link introduce "subtitle" as a new field that basically is a caption field but with space separated words?

kind of ... yes. Similar as "caption", "subtitle" is just a convention, that was introduced in the thread, where Mark S. came up with the idea of replacing [[]] with a macro call.
 
IMO the term subtitle is implicitly already taken for the $:/core/ui/ViewTemplate/subtitle i.e the line below the title.

That's an area, that contains several elements at the moment. .. The subtitle field could be one of them. ... That's a perfect fit.
 
But if "implicitly used" is not enough, there is also a field explicitly named "subtitle" as used by the core as "The subtitle text for a wizard" according to this tiddler.

... that's exactly the usecase that is intended for the subtitle field.

 
One idea for name for a space-separated caption field could be "spaced_caption" or similar.

Nope.

-m

Mat

unread,
Dec 18, 2017, 6:09:12 AM12/18/17
to TiddlyWiki
One idea for name for a space-separated caption field could be "spaced_caption" or similar.

Nope.

haha! ;-)


<:-) 

PMario

unread,
Dec 18, 2017, 8:58:54 AM12/18/17
to tiddl...@googlegroups.com
I wasn't sure about the "aliases" field at the beginning. Also just a convention. ... But I think, "the initial thread" where Jeremy says, that "aliases" are a thing, I was confident enough to use "aliases" as the field name. ...

So we will see. The plugin is intended to be superseded by the TW core, once we iron out the edges and if there are no unwanted side effects.

have fun!
mario



Diego Mesa

unread,
Jan 23, 2018, 12:45:19 PM1/23/18
to TiddlyWiki
Hey Mario,

Great plugin. 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!

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:

  • Since we can style other links in this plugin, perhaps we should be able to style all links to the ? tiddler appropriately.
  • Use the "?" tiddler to list all backlinks which are the "missing alias" links.

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.


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.


Diego

PMario

unread,
Jan 24, 2018, 9:38:04 AM1/24/18
to TiddlyWiki
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

coda coder

unread,
Jan 25, 2018, 10:52:25 AM1/25/18
to TiddlyWiki
Hi Mario

I think I've found a couple of issues with uni-link.  Be aware I am using version V0.1.0 - 2017.07.25 -- I didn't want to install the latest until you can confirm it doesn't suffer the same issues.

Issue 1

I wanted to create a macro that uses either Evan Balster's addposition operator, or Tobias Beer's similar solution here.  But both were returning the text as links -- when I disabled uni-link, the text was just plain text again. If you visit Tobias' example, the tiddler's A, B and C (which have captions in my system) were returned as links using the caption text.

Issue 2

The other issue is with TheDiveO's FontAwesome plugin -- see https://github.com/TheDiveO/TW5FontAwesome/issues/3.  Your Bundles plugin suffered badly from this problem. I concur with TheDiveO's deductions: uni-link is creating too many <a> elements (causing excessive application of tiddler icons).

I hope I have explained these problems clearly.  Let me know if I can help further.

Coda

PMario

unread,
Jan 25, 2018, 11:40:47 AM1/25/18
to TiddlyWiki
On Thursday, January 25, 2018 at 4:52:25 PM UTC+1, coda coder wrote:
I think I've found a couple of issues with uni-link.  Be aware I am using version V0.1.0 - 2017.07.25 -- I didn't want to install the latest until you can confirm it doesn't suffer the same issues.

Issue 1

I wanted to create a macro that uses either Evan Balster's addposition operator, or Tobias Beer's similar solution here.  But both were returning the text as links -- when I disabled uni-link, the text was just plain text again. If you visit Tobias' example, the tiddler's A, B and C (which have captions in my system) were returned as links using the caption text.

Without an MTC I don't have an idea, what you want to achieve here. ... Can the issue be reproduced with: https://wikilabs.github.io/editions/uni-link/ latest version. Just save this edition with the save button and import your TW with drag and drop. This will be the fastest way to test / reproduce it. 

I'm sorry, but I can't support my old beta plugins, in combination with other beta plugins, without an MTC.
 
Issue 2

The other issue is with TheDiveO's FontAwesome plugin -- see https://github.com/TheDiveO/TW5FontAwesome/issues/3.  Your Bundles plugin suffered badly from this problem. I concur with TheDiveO's deductions: uni-link is creating too many <a> elements (causing excessive application of tiddler icons).

I did test this one. ... It seems uni-link really creates 2 a elements, which it shouldn't.

I did create an issue at github and linked it to issue #3 you mentioned. see: https://github.com/wikilabs/plugins/issues/7

-mario

coda coder

unread,
Jan 25, 2018, 12:07:41 PM1/25/18
to TiddlyWiki


On Thursday, January 25, 2018 at 10:40:47 AM UTC-6, PMario wrote:

Without an MTC I don't have an idea, what you want to achieve here.

I assume MTC means "STR" where I come from (steps to recreate?).  The only meaning I know for MTC is "minimum technical competency" -- perhaps I fail ;)

 
... Can the issue be reproduced with: https://wikilabs.github.io/editions/uni-link/ latest version. Just save this edition with the save button and import your TW with drag and drop. This will be the fastest way to test / reproduce it. 

Yes, I'll try that (might be a while though).
 

I'm sorry, but I can't support my old beta plugins, in combination with other beta plugins, without an MTC.

That's fair.
 
 
I did create an issue at github and linked it to issue #3 you mentioned. see: https://github.com/wikilabs/plugins/issues/7


Cool.  Sorry about the lack of "@PMario" -- didn't realize they'd cross-link like that.
 

PMario

unread,
Jan 25, 2018, 12:57:01 PM1/25/18
to TiddlyWiki
On Thursday, January 25, 2018 at 6:07:41 PM UTC+1, coda coder wrote:


On Thursday, January 25, 2018 at 10:40:47 AM UTC-6, PMario wrote:

Without an MTC I don't have an idea, what you want to achieve here.

I assume MTC means "STR" where I come from (steps to recreate?).  The only meaning I know for MTC is "minimum technical competency" -- perhaps I fail ;)

Sorry ... MTC minimal test case.

-m

PMario

unread,
Jan 27, 2018, 8:25:38 AM1/27/18
to TiddlyWiki

Hi, I did upload a new version. ...


There should be an improvement with TW5FontAwesome plugin. .. But I can't test, since I don't know how to reproduce the issue.

It's still a temporary fix, which needs more work.


V 0.3.0 - 2018.01.27

  • add: styling possibility for missing aliases
  • improve: history and copyright

V 0.2.1 - 2018.01.27

  • fix: uni-link creates an unused a-element

have fun!

mario

PMario

unread,
Jan 27, 2018, 8:30:10 AM1/27/18
to TiddlyWiki
Hi Diego,

I did upload a new version v0.3.0 https://wikilabs.github.io/editions/uni-link/ , which also assignes uni-alias-missing class, which defaults to red.


have fun!
mario

PMario

unread,
Jan 27, 2018, 8:33:24 AM1/27/18
to TiddlyWiki
Hi,

I did create a new issue: https://github.com/wikilabs/plugins/issues/9 ... Where you can "bump" me from time to time, if it takes too long ;)

-m

Diego Mesa

unread,
Jan 27, 2018, 11:45:52 AM1/27/18
to TiddlyWiki
Thanks as always Mario!

Diego

PMario

unread,
Jan 30, 2018, 1:56:11 PM1/30/18
to TiddlyWiki
Hi,
Have you been able to test the latest version?
-m

Diego Mesa

unread,
Jan 30, 2018, 2:16:56 PM1/30/18
to TiddlyWiki
Hi Mario

As far as testing, I've just installed it and made my missing alias links red, which now show correctly. I am not able to test the other resolved issue with the multiple <a> elements. But so far, its working great.

The only thing for me now is the ? tiddler and how to handle backlinks for that tiddler.  (as we discussed previously - Im aware this isnt easy!)

Thanks!
Diego

coda coder

unread,
Jan 30, 2018, 4:11:41 PM1/30/18
to TiddlyWiki


On Saturday, January 27, 2018 at 7:25:38 AM UTC-6, PMario wrote:

Hi, I did upload a new version. ...


There should be an improvement with TW5FontAwesome plugin. .. But I can't test, since I don't know how to reproduce the issue.

It's still a temporary fix, which needs more work.


V 0.3.0 - 2018.01.27

  • add: styling possibility for missing aliases
  • improve: history and copyright

Hi Mario

I just tested 0.3.0 -- the extra a-elements are still applied when importing a bundle:



I still haven't had chance to knock up a minimal STR for the other issue.

Coda


Auto Generated Inline Image 1
Auto Generated Inline Image 2

PMario

unread,
Jan 30, 2018, 7:13:28 PM1/30/18
to TiddlyWiki
On Tuesday, January 30, 2018 at 10:11:41 PM UTC+1, coda coder wrote:
Hi Mario

I just tested 0.3.0 -- the extra a-elements are still applied when importing a bundle:

Hi, Thx for the info.
Will have a closer look
-m

PMario

unread,
Jan 31, 2018, 6:21:33 AM1/31/18
to TiddlyWiki
On Tuesday, January 30, 2018 at 10:11:41 PM UTC+1, coda coder wrote:
I just tested 0.3.0 -- the extra a-elements are still applied when importing a bundle:

I did have a closer look. ...
Working with empty.html added bundler and uni-link plugins.
It looks like this:



Did you change any of the default macros? eg: $:/plugins/wikilabs/uni-link/uni-link-macro

-mario

Auto Generated Inline Image 1

coda coder

unread,
Jan 31, 2018, 8:21:24 AM1/31/18
to TiddlyWiki


On Wednesday, January 31, 2018 at 5:21:33 AM UTC-6, PMario wrote:
On Tuesday, January 30, 2018 at 10:11:41 PM UTC+1, coda coder wrote:
I just tested 0.3.0 -- the extra a-elements are still applied when importing a bundle:

I did have a closer look. ...
Working with empty.html added bundler and uni-link plugins.


Did you add the latest FontAwesome?

It looks like this:



Did you change any of the default macros? eg: $:/plugins/wikilabs/uni-link/uni-link-macro


No.

PMario

unread,
Jan 31, 2018, 1:44:55 PM1/31/18
to tiddl...@googlegroups.com
On Wednesday, January 31, 2018 at 2:21:24 PM UTC+1, coda coder wrote:
On Wednesday, January 31, 2018 at 5:21:33 AM UTC-6, PMario wrote:
On Tuesday, January 30, 2018 at 10:11:41 PM UTC+1, coda coder wrote:
I just tested 0.3.0 -- the extra a-elements are still applied when importing a bundle:

I did have a closer look. ...
Working with empty.html added bundler and uni-link plugins.


I think I found it: eg: [[CamelCase]] ... the redundant braces seem to be the problem. ... Need more investigation.

-m

PMario

unread,
Jan 31, 2018, 3:26:22 PM1/31/18
to TiddlyWiki
Hi,

https://wikilabs.github.io/editions/uni-link/  v0.3.1 should play nice with FontAwesome5 now.

Please test
-mario

coda coder

unread,
Jan 31, 2018, 3:55:39 PM1/31/18
to TiddlyWiki


   :)





Auto Generated Inline Image 1

PMario

unread,
Jan 31, 2018, 4:12:43 PM1/31/18
to tiddl...@googlegroups.com
On Tuesday, January 30, 2018 at 8:16:56 PM UTC+1, Diego Mesa wrote:
The only thing for me now is the ? tiddler and how to handle backlinks for that tiddler.  (as we discussed previously - Im aware this isnt easy!)

BACKUP FIRST!

The regexp search has the potential to block the browser tab. So use with care!

The following code creates a list of all tiddlers, that contain the text fragment sometext|?

<<list-links "[!is[system]regexp:text[.+\|\?]]">>

The disadvantage is, that it can take a long time, if you have many tiddlers, with much text, or at least much text.

-m

PMario

unread,
Feb 1, 2018, 2:21:30 PM2/1/18
to tiddl...@googlegroups.com
On Tuesday, January 30, 2018 at 8:16:56 PM UTC+1, Diego Mesa wrote:
The only thing for me now is the ? tiddler and how to handle backlinks for that tiddler.  (as we discussed previously - Im aware this isnt easy!)

Hi Diego and others.

I did find a position in the code, where I can mark backlinks to the "?" tiddler, if an [[alias|?]] link is missing. ...

The advantage is: the filter:  [[?]aliasbacklinks[]] will return a list of tiddlers, that contain undefined alias links.
This could be  a new tab in the "Aliases" right sidebar. ... eg: Undefined

The disadvantage is, that this list is updated only, if the containing tiddler is modified too :/  ... or a browser reload happens.

What do you think?

have fun!
mario

Diego Mesa

unread,
Feb 1, 2018, 4:05:11 PM2/1/18
to TiddlyWiki
Hey Mario,

What do you mean by "the containing tiddler"?

The refresh wouldn't bother me much, since I have autosave with node.

Some information is better than no information!

Thanks for continuing to look into this!
Diego


On Thursday, February 1, 2018 at 1:21:30 PM UTC-6, PMario wrote:
On Tuesday, January 30, 2018 at 8:16:56 PM UTC+1, Diego Mesa wrote:
The only thing for me now is the ? tiddler and how to handle backlinks for that tiddler.  (as we discussed previously - Im aware this isnt easy!)

Hi Diego and others.

I did find a position in the code, where I can mark backlinks to the "?" tiddler, if an [[alias|?]] link is missing. ...

The advantage is: the filter: [[?]backlinks[]] will return a list of tiddlers, that contain undefined alias links.

PMario

unread,
Feb 1, 2018, 7:56:59 PM2/1/18
to tiddl...@googlegroups.com
On Thursday, February 1, 2018 at 10:05:11 PM UTC+1, Diego Mesa wrote:
What do you mean by "the containing tiddler"?

eg: test tiddler is "the containing tiddler"

 -  test tiddler contains an undefined [[asdf|?]] call.
 - So  [[?]aliasbacklinks[]] will show: test   -> that's OK
 - Internally the missing alias is cached with the test tiddler

 - Now we define the field: aliases: asdf in myTiddler.
 - Nothing happens to test tiddler so the backlinks won't be updated.

At the moment I think I need to modify the core to get a performant fix. ...
Or I just haven't found the right place in the existing code :)

Some information is better than no information!

Yea, I thought about that too.  I'll probably have to add some info text to the "undefined" alias list

What I don't like at the moment is, that at the very beginning, the 80% code was simple and elegant.
Now the 98% code lost the elegance ... That's sad.

have fun!
mario

PMario

unread,
Feb 2, 2018, 10:05:05 AM2/2/18
to TiddlyWiki
Hi,
Fixed the filter typo in the other posts to [[?]aliasbacklinks[]]  which actually works
-m

PMario

unread,
Feb 2, 2018, 10:48:24 AM2/2/18
to TiddlyWiki
Hi,

Test out 0.3.2. 

New:

New tab in RightSidebar: More: Aliases: Undefined

Filter Operators:

have fun!

mario

Diego Mesa

unread,
Feb 2, 2018, 11:20:05 AM2/2/18
to TiddlyWiki
Thanks again for all your work on this Mario!

Ill just add here that I find it convenient to edit:

$:/core/ui/TiddlerInfo/References


and change the alias empty message to:


emptyMessage="No tiddlers alias to this one"


So that its clearer for me. Just a tip for others if they are interested.


Diego

PMario

unread,
Feb 2, 2018, 2:54:51 PM2/2/18
to TiddlyWiki
On Friday, February 2, 2018 at 5:20:05 PM UTC+1, Diego Mesa wrote:
Thanks again for all your work on this Mario!

You are welcome.
 
Ill just add here that I find it convenient to edit:

$:/core/ui/TiddlerInfo/References


and change the alias empty message to:


emptyMessage="No tiddlers alias to this one"


Yea. ... But I wanted to keep the language-specific message for the plugin, even if it isn't precise.
 

So that its clearer for me. Just a tip for others if they are interested.


That's right.

-------------

If you find something else, just let me know.

-m

PMario

unread,
Mar 26, 2020, 6:57:09 AM3/26/20
to TiddlyWiki
Hi Folks,

This thread is outdated: Please go to: [INTRO] uni-link V1.0.0 thread.

Have fun!
mario
Reply all
Reply to author
Forward
0 new messages