Context Trees shows the headings and parent list items above each search result, backlink and unlinked mention

Show parent headings and lists in search results.

MIT · no telemetry · core features free

Pro adds "Regular expressions and saved queries" and "View state for each note". Pro for all 134 plugins, $15 one time

Read documentation (21 languages)

Search results shown as trees of headings and list items.
Open larger
version
1.4.4
released
downloads
404
review
Passed
health
Excellent
license
MIT
listed for
Desktop, Mobile
obsidian
1.13.4 or later

Tested on desktop only.

Directory facts fetched from community.obsidian.md/users/theluckystrike.

checked
Version 1.0.0 on 10 October 2026, in Obsidian 1.14.4 on desktop. The current version is 1.4.4, and it has no check yet.
passed
Install, free feature, Pro text, sign in, Pro stays off, network, token storage.
checked by
An automated check that the developer runs, not a review by Obsidian. See what each check means

About Context Trees

You write notes as outlines or long documents, and a matching line alone doesn't tell you what it belongs to.

The core Search and Backlinks panes show the matching text and, with Show more context, more text around it. In a nested list, that line often means little without the items above it. Context Trees is a side view that puts each hit under its headings and parent list items.

Hits that share a parent show that parent once, so a note with five matches reads as one small outline. The view opens in the right sidebar and doesn't change the core panes. Search, backlinks, unlinked mentions, sorting, folding and open at the line are free.

The view runs a search for pricing, a second search with no matches, folds five notes, then shows the backlinks of Project Atlas.Play demo

Free features

Search with context trees

Type a word or a quoted phrase, and the view lists each note that has each word on one line. Each note shows a tree with the headings above the match, then the parent list items, then the line with the hit marked. Two matches in the same list share the parents above them.

Backlinks with context trees

Open the Backlinks tab to see the notes that link to the open note. Each linking line comes with its heading path and its parent items, so you see why a note links here. The view follows the open note, and embeds count as links.

The Backlinks tab lists 5 backlinks of Project Atlas in 4 notes, each under its headings and parent list items.
Open larger

Fold, unfold and open at the line

Select the arrow of a note or of a branch to fold it, or use the two buttons above the results for everything. Select a line to open its note with the cursor on that line. Hold Ctrl, or Cmd on macOS, to open it in a new tab.

Search results for pricing with two notes open as trees and four notes folded to their names and match counts.
Open larger

Match case, commands and settings

The Aa switch makes the search match case. Three commands open the view, put the cursor in the search box, and show the backlinks of the current note. The settings set the search delay, the notes per page, and whether notes start folded.

Readable internal links

Wikilinks and supported local inline Markdown links show readable labels in results. Select a link to open its target; Ctrl or Cmd opens another tab. External URLs, embeds, code and unsupported link forms stay as text.

Context trees show readable wiki link aliases in headings, parent items and matching lines.
Open larger

Unlinked mentions without links, URLs, tags or code

The Unlinked mentions tab lists notes that name the open note, or an alias, as a whole word with no link. A name does not count inside a link, an embed, a URL or a tag. It also does not count in code, a comment, inline math or a footnote reference, and each mention shows its context tree.

The Unlinked mentions tab with three notes, where the Atlas sources note shows only its heading and one plain line.
Open larger

Ignore terms, folders and notes

Put a word or phrase on each line of Ignored terms, and a mention inside it does not count. Notes in Ignored folders are not searched. A note can opt out with the property context-trees-mentions, set to false, source or target.

Unlinked mentions of Project Atlas with two ignored terms, where the mentions inside those terms are gone.
Open larger

Sort and remember the view state

The sort button orders notes by name or by modified time, in either direction. Set Remember the view state to For all notes to keep the tab, query, sort and folds across notes and restarts. The default, Off, works as in version 1.3.0.

The Backlinks tab opened again with the sort order Name, Z to A and the first note still folded.
Open larger

Search, backlinks, unlinked mentions, readable links, sorting, folding and a remembered view state for all notes are free.

Pro features

Pro costs $5 a month or $15 one time through GitHub Sponsors.

One payment of $15 turns on Pro in 134 NoteMods plugins.

Regular expressions and saved queries Pro

Switch on the regular expression button to test each line against a pattern, and a bad pattern shows an error. Select Save to keep a query and its switches as a chip above the results, up to 50 chips. Select a chip to run it again, or its cross to delete it.

A regular expression query with the pattern switch on, one saved query chip, and 13 matches in 6 notes.
Open larger

View state for each note Pro

With Pro, set Remember the view state to For each note to keep a separate state for each note. The plugin keeps up to 300 notes, and the oldest ones go first.

Export the results Pro

The download button, or the command Export the results as a note, writes the current results to a new Markdown note. Each result note is a heading with a link, and its tree follows as a nested list. The matching lines are highlighted with ==.

An exported note with the line 11 results in 6 notes, a link for each note, and its tree as a nested list.
Open larger

$15 once. Pro tools in 134 NoteMods plugins with one GitHub sponsorship. Nothing renews.

Pro turns on right after payment. Select Sign in with GitHub in the settings of each plugin you use. Free features stay free.

Secure checkout by GitHub Sponsors - needs a GitHub login.

We email you this link once, and one reminder if you confirm. Unsubscribe any time.

Price tiers

17 of 50 founding licenses sold.

  1. Founding price · now$15licenses 1 to 50
  2. Tier 2$19licenses 51 to 150
  3. Tier 3$24licenses 151 to 300
  4. Tier 4$29licenses 301 and more

The price is set on the 1st of each month. It goes up only after a tier is full. Until then it stays $15. The next price review is on 1 December 2026.

A price change does not change a license that you paid for. The $5 a month option stays.

Get Pro with GitHub Sponsors

One sponsorship turns on the Pro features in 134 NoteMods plugins. Free features stay free.

$15 one time: Pro stays on, nothing renews. $5 a month: Pro is on while you sponsor, and stays on after you have paid $15 in total. You pay on GitHub (a GitHub login is needed), then select Sign in with GitHub in the plugin settings. All sponsor tiers

Set up Context Trees

needs

  • Obsidian 1.13.4 or later
  • Search covers the body text of Markdown notes. It skips the properties block, file names and attachments.

steps

  1. Install Context Trees from Community plugins and enable it.

  2. Select the tree icon in the ribbon, or run the command Open the side view. The view opens in the right sidebar.

  3. Type in the search box and wait a moment, or press Enter.

  4. Select Backlinks to see the links to the open note, or Unlinked mentions to see the plain text mentions of it.

  5. Run the command Search the vault to open the view with the cursor in the search box.

If the app can't find a new plugin yet, try again later. Obsidian says a plugin that passes the review shows in the app within 24 hours.

Why this exists

A forum request from October 2022 asks Backlinks and Search to show parent list items and heading breadcrumbs, and it has 78 likes. Better Search Views does this inside the core panes, has about 50,000 downloads, and had its last release in December 2024.

How to show the headings and parent list items of search results and backlinks in Obsidian

How it compares

Better Search Views
Better Search Views changes the core panes by patching private parts of Obsidian. Context Trees is its own view, uses only the public API, and has no code from Better Search Views.
Core Search and Backlinks panes
The core panes work as before, and their syntax, such as path: and tag:, is not available in Context Trees. Context Trees searches the text of each line.

Known limits of Context Trees

  • A search word also matches inside longer words, so price finds prices and repricing.
  • The Backlinks tab reads the links and embeds in the note text, so a link in the properties of a note does not show there.
  • Every word of a query must be on the same line of a note, and core operators such as path: and tag: don't work here.
  • Search skips the properties block, file names and attachments, and reads only the body text of Markdown notes.

Need a change for your team? I build custom Obsidian plugins and features.

Questions about Context Trees

How do I see which heading a search result is under in Obsidian?

The core Search pane shows the matching text and, with Show more context, more text around it. Context Trees adds a side view where each match sits under its headings and parent list items. Select a line there to open the note at that line.

Does Context Trees change my notes or the core panes?

No. It only reads notes, and Export creates a new note. The core Search and Backlinks panes work as before, because Context Trees is a separate view.

How do I keep a note out of the unlinked mentions?

Add the property context-trees-mentions to the note. The value false opts it out both ways, source means its text is not searched, and target means mentions of it are hidden. You can also add Ignored folders and Ignored terms in the settings.

How fast is the search on a large vault?

The end-to-end test builds a vault of 2,000 short notes and fails if the first results take 1 second or more. The view reads notes in batches of 48 and draws the matching notes after each batch, until the first page is full. The unlinked mention scan of those notes must stop for the editor within 50 ms, and the test fails at 100 ms. Times on your vault depend on its size and on your device.

Does Context Trees work on a phone?

The directory lists it for desktop and mobile, and the plugin isn't marked desktop only. The end-to-end tests run on the desktop app only. Report a phone problem in the GitHub issues of the plugin.

Network use

Context Trees makes no network requests until you select Sign in with GitHub in the settings. After sign in, it reuses a successful sponsorship check for 7 days and retries a failed check after 6 hours. It sends no note content, file names or other vault data, and it has no telemetry.

Read the full network disclosure

Questions or ideas?

Tell me what is broken in Context Trees, or what it should do next.

Send feedback

Context Trees 1.4.4, MIT license

MIT · no telemetry · core features free

Pro adds "View state for each note"Pro for all 134 plugins, $15 one time

Get Pro