Show outgoing links in Bases

What I’m trying to do

Show in bases all the outgoing links from a note.

Things I have tried

I have tried using

file.outlinks 

as in Dataview, but Obsidian Bases does not recognize it.

Near the top right of the base, click “Properties” then select “file links”:

There’s no thing called “file.outlinks” in Bases. But it does have these functions.

Thank you for the response, but what I’m looking for is to create filters that help display the outgoing links from a note, similar to

file.hasLink(this.file)

I had already thought about displaying the file backlinks property.

This filter displays notes that the active note links to:

this.file.links.contains(file)

I had thought you meant links from a “row” note and didn’t realize you meant from the currently active note. Or am I still misunderstanding?

Since the outgoing links in Obsidian’s sidebar only show internal links and not external ones, I was looking for a filter that would help me display internal links to notes, blocks, headings, and also external links from the active note. Thank you for your time.

Do you know what language advanced database filters use? (Java, JavaScript, etc.)

Do you know what language advanced database filters use? (Java, JavaScript, etc.)

Its syntax is similar to JS but isn’t JS, and it has just the documented functions and documented syntax. There’s no API yet to do more than those.

I was looking for a filter that would help me display internal links to notes, blocks, headings, and also external links from the active note.

Notes

The filter I showed above returns notes that the current note links to. I think that’s what you mean by “display internal links to notes […] from the active note.”

Headings and blocks

To filter by links to headings and blocks, you could .toString() those links and parse for the # and > characters and make use of the info for filtering.

But for displaying clickable links, Bases currently doesn’t render links to headings and blocks. It renders them as links to the whole note.

External links

While I haven’t investigated to find out, I suspect that Obsidian doesn’t index your external links, and we know Bases doesn’t (currently) read non-indexed note content, so external links are not something that core Bases would be able to directly filter.

A future plugin that, say, reads the content of notes to maintain an index of external links, might be able to add that functionality.

There’s nothing in the docs about functions for external links.

The only workaround I can think of for external links is the ones in a front matter property. Bases can filter and render those.

I understand, thank you

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.