Are there any hacks for getting backlinks for soft links?

100 views
Skip to first unread message

si

unread,
Jan 15, 2021, 7:06:07 AM1/15/21
to TiddlyWiki
TiddlyRemember uses macros like this:

<<rememberq "20210115012652199"
    "Who went with [[Frodo]] to [[Mordor]]?"
    "[[Sam]]">>

Which renders like this:
mordor.png
As far as I know, filters like  [[Mordor]backlinks[]] will not return the above example, because the links are contained within the macro syntax.

For cases where the macro is rendered on the tiddler that contains it, you can use the following hack:

<$vars lb="[[" rb="]]">
<$vars search_term={{{ [<lb>addsuffix[Mordor]addsuffix<rb>] }}}>
<<list-links filter:"[search<search_term>]">>
</$vars>
</$vars>

But what about when it's transcluded elsewhere? Are there any hacks out there to get the same effect?

Flibbles

unread,
Jan 15, 2021, 6:55:03 PM1/15/21
to TiddlyWiki
If you're just trying to get a list of backlinks to look at, I might recommend the Relink plugin. It adds a special References tab to the TiddlyInfo panel. Once rememberq is properly configured, which would be something like `\relink rememberq question:wikitext answer:wikitext` or something like that (depends on the macro argument names), Relink will pick them up just fine.

If you're looking for a filter operator like backlinks, then that would be trickier...
Reply all
Reply to author
Forward
0 new messages