younggyolee42 downloadsAutomatically expand the surrounding context of each match in the backlinks panel, similar to Roam Research.
An Obsidian plugin that automatically expands the context shown in the bottom backlinks panel (and the standalone backlinks pane) so you don't have to click the chevrons on every match — giving you a Roam Research-style backlinks view where each linked mention appears with its surrounding bullets / paragraph already expanded.
Inspired by this forum request: https://forum.obsidian.md/t/backlink-to-display-more-context-by-default/102810
When you open a note, this plugin:
| Setting | Default | What it does |
|---|---|---|
| Enabled | on | Master toggle. |
| Show more context | on | Forces the panel's "Show more context" header toggle on by default. |
| Expand below (levels) | 5 |
How many times to click each match's "show more below" chevron. Tune to taste. |
| Expand above (levels) | 0 |
How many times to click each match's "show more above" chevron. |
| Apply delay (ms) | 200 |
Wait between file open and applying expansion. Increase for slow vaults. |
| Per-click delay (ms) | 20 |
Pause between successive expand clicks. |
Download main.js, manifest.json, styles.css from the latest release into <vault>/.obsidian/plugins/auto-expand-backlinks/, then enable in Settings → Community plugins.
Obsidian's backlinks panel doesn't expose a documented API for default expansion. This plugin reaches into the internal view.backlinks.backlinkDom to flip extraContext, then clicks the per-match .search-result-hover-button.mod-bottom / .mod-top DOM buttons that Obsidian uses for context expansion.
Because it relies on internal/undocumented APIs, it may break on future Obsidian releases.
MIT — see LICENSE.