Backlink Cache

by mnaoumov
5
4
3
2
1
Score: 65/100

Description

Category: File Management

The Backlink Cache plugin is a game-changer for Obsidian users with large vaults, as it significantly speeds up the performance of the Backlinks Pane and plugins that rely on backlinks. By maintaining a cache of backlinks, this plugin reduces the time it takes to retrieve link information, making navigation and discovery much faster. Whether you're a power user or a developer creating plugins, Backlink Cache is an excellent addition to your Obsidian setup, allowing you to work more efficiently and effectively with your notes.

Reviews

No reviews yet.

Stats

48
stars
21,516
downloads
0
forks
914
days
31
days
64
days
1
total PRs
0
open PRs
0
closed PRs
1
merged PRs
13
total issues
1
open issues
12
closed issues
110
commits

Latest Version

2 months ago

Changelog

  • chore: fix typo
  • chore: update template

Full Changelog: https://github.com/mnaoumov/obsidian-backlink-cache/compare/2.12.0...2.12.1

README file from

Github

Buy Me a Coffee GitHub release GitHub downloads

This is a plugin for Obsidian that maintains backlink cache to speed up undocumented app.metadataCache.getBacklinksForFile function.

It's mostly useful for users with the large vaults. On smaller vaults the difference might be unnoticeable.

It speeds up Backlinks Pane performance and plugins that deal with the backlinks.

This plugin the most likely will be useful for other plugin developers that deal with the backlinks.

Its idea came from the forum.

Also the plugin includes canvas into the backlinks for the referenced files. This includes the app.metadataCache.getBacklinksForFile function and the Backlinks Pane.

Usage

Fast version

The provided version is faster than the built-in version. Also the overload to accept path was added.

const backlinks1 = app.metadataCache.getBacklinksForFile(file);
const backlinks2 = app.metadataCache.getBacklinksForFile(path);

Safe version

If you want to ensure the all recent file changes are processed and the backlinks are 100% accurate.

const backlinks1 = await app.metadataCache.getBacklinksForFile.safe(file);
const backlinks2 = await app.metadataCache.getBacklinksForFile.safe(path);

Original version

You can access the original built-in version:

const backlinks = app.metadataCache.getBacklinksForFile.originalFn(file);

TypeScript typings

If you want to use the updated functions from your plugin, you can copy types.d.ts into your code.

The plugin handles links from the canvas file/text cards if Canvas core plugin is enabled.

The plugin speeds up the Backlinks panel if Backlinks core plugin is enabled.

The plugin includes backlinks from the frontmatter markdown links if Frontmatter Markdown Links community plugin is enabled. Example of such link:

---
key: "[title](path/to/link.md)"
---

Installation

The plugin is available in the official Community Plugins repository.

Beta versions

To install the latest beta release of this plugin (regardless if it is available in the official Community Plugins repository or not), follow these steps:

  1. Ensure you have the BRAT plugin installed and enabled.
  2. Click Install via BRAT.
  3. An Obsidian pop-up window should appear. In the window, click the Add plugin button once and wait a few seconds for the plugin to install.

Debugging

By default, debug messages for this plugin are hidden.

To show them, run the following command:

window.DEBUG.enable('backlink-cache');

For more details, refer to the documentation.

Support

My other Obsidian resources

See my other Obsidian resources.

License

© Michael Naumov

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Influx
4 years ago by Jens M Gleditsch
An alternative backlinks plugin, which displays relevant and formatted excerpts from notes with linked mentions, based on the position of mentions in the notes' hierarchical structure (bullet level indentation).
Daily Note Outline
4 years ago by iiz
Add a custom view which shows outline of multiple daily notes with headings, links, tags and list items
Project Browser
2 years ago by Dale de Silva
AutoMOC
4 years ago by Diego Alcantara
Link Tree
3 years ago by Joshua Tazman Reinier
A sidebar foldable list of Obsidian link hierarchies.
Frontmatter Markdown Links
a year ago by mnaoumov
Obsidian Plugin that adds support for markdown links in frontmatter
Auto Keyword Linker
4 months ago by Daniel Rhodes
Stop manually typing [[brackets]] around recurring terms. Configure keywords with variations once, and automatically link them as you write or across your entire vault.
Rich Foot
2 years ago by Justin Parker
🦶 Obsidian plugin that adds backlink/outlink tags and created/modified dates to the footer of your notes
Default query in backlinks
2 years ago by Benature
Nav Link Header
2 years ago by ahts4962
Display navigation links at the top of the notes in Obsidian
Hierarchical Backlinks
2 years ago by Jason Motylinski
Plugin which displays backlinks as a tree structure based on file paths
Backlink Full Path
a year ago by mnaoumov
Obsidian plugin that shows the backlink's full path in the backlinks panel.
Coalesce
10 months ago by Floyd
Coalesce is an Obsidian plugin that merges all your linked notes into a single, organized view for a cohesive research and writing experience.
UnLime
10 months ago by shandyba
Obsidian Unmentioned Links toggle
Anki Helper
3 months ago by Dusk