Skip to content

Outliner-like breadcrumb trees for search, backlinks and embedded queries

License

Notifications You must be signed in to change notification settings

ivan-lednev/better-search-views

Repository files navigation

Better Search Views

Warning

  • You need to reload Obsidian after you install/update/enable/disable the plugin
  • The plugin reaches into Obsidian's internals, so it may break after an update. If you noticed that, please create an issue

How to use it

Just install it and reload Obsidian. Now Obsidian's built-in global search, backlinks and queries should be decorated with breadcrumbs.

What it does

Before 'Better Search Views', search results look like this:

image

After 'Better Search Views' they look like this:

image

A closer look

Let's open one of the files with matches, and see how the hierarchy in the search result matches the file: image

But what does it do exactly?

The plugin brings more outliner goodness into Obsidian: it improves search views to create an outliner-like context around every match.

  • It patches native search, backlinks view, embedded backlinks and embedded queries
  • It renders markdown in the match to HTML
  • It builds structural breadcrumbs to the match by chaining all the ancestor headings and list items above
  • If the match is in a list item, it displays all the sub-list items below it
  • If the match is in a heading, it displays the first section below the heading (you know, for context)

Backlinks in document look like this

image

Embedded queries look like this

image

Clicking on breadcrumbs works just as you might expect

image

Hovering over any element with the control key pressed triggers a pop-up

image

Contribution

If you noticed a bug or have an improvement idea, please create an issue.

Pull-requests are welcome! If you want to contribute but don't know where to start, you can create an issue or write me an email: [email protected].

You can also support the development directly:

Buy Me A Coffee

Acknowledgements