Hi Linda

The mechanism for tracking links for backlinks, missing and orphan tiddlers is 
pretty simplistic for performance reasons. It parses each tiddler and looks for 
direct links within it. Computed links that are only resolved at render time 
will not be detected. To track computed links we'd have to render every tiddler 
to find them, and rendering is slow.

One possible JavaScirpt approach to fixing this might be to make a plugin that 
replaces the link detection code in wiki.getTiddlerLinks() and detects 
invocations of "myMacro" instead or as well as looking for invocations of the 
link widget.

Best wishes

Jeremy



--
Jeremy Ruston
[email protected]
https://jermolene.com

> On 18 Feb 2019, at 19:40, Linda Moss <[email protected]> wrote:
> 
> Hi!
> 
> There's a certain kind of link I wanted formatted a certain way, so I created 
> a macro:
> 
> <<myMacro "link to format">>
> 
> which applied the necessary formatting. 
> 
> But of course, this broke all my backlinks. So I changed it to:
> 
> <<myMacro [[link to format]]>>
> 
> but because the link is an argument to a macro, it is still unrecognized, and 
> my backlinks are still broken.
> 
> Is there a way to apply formatting to a certain kind of link (without putting 
> the formatting inline every single time) and still have the backlinks work?
> 
> 
> Thanks!
> 
> PS: I also went down a rabbit trail of trying to regain the backlinks by way 
> of a macro calling a list filtered with "[!is[system]regexp:text[$term$]]", 
> because the text of these links is unlikely to appear anywhere other than the 
> title of the linked tiddler and places intentionally referencing that title. 
> However, most of these links would need to be escaped, and I couldn't figure 
> out how to get escaperegexp[] to work inside the filter to escape $term$ 
> before it was searched. 
> 
> Now, starting fresh, I might name all the tiddlers that would be receiving 
> such a link so as to prevent the need for escaperegexp[], but as it stands, 
> there are over a thousand of them, (and they follow a specific naming 
> convention that other things are based).
> -- 
> 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/97d844c4-5b36-44bf-872c-0d294fc62d70%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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/EBC12F78-861A-4922-8B5A-1EC63F973572%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to