Function to get backlinks that includes system tiddlers?

Since I use Streams my primary tiddlers (the ones I take notes in) don’t actually contain any text, and are really just a set of sub-tiddlers with the prefix streams/. Because of this I have a special function that I use to get the backlinks for a list of tiddlers:

[!is[system]backlinks[]prefix[streams/]get-stream-root[]]

I would like to change the prefix that I use from streams/ to $:/streams/. But the problem is that backlinks[] doesn’t include system tiddlers.

Is there any way to rewrite my function to work with system tiddlers? I know that Relink has a backreferences[] operator, but this is not suitable as it returns more than just backlinks.

Try something like this…

[all[tiddlers]prefix[$:/streams/] :filter[links[]!is[system]] :map[get-stream-root[]]

I don’t have streams so some of the filter is guesswork… but i’ve tested the links aspect of this on TW5.co content and it seems to work…

:smiley:

Thanks @Christian_Byron, but this does not accept a list as input as far as I can tell? It will just return every backlink in the wiki, rather than the backlinks for a particular set of tiddlers.