Rich Search

approvedunreviewed

by sdking

Cross-file search: whole-word and regex matching, folder and file-type scope, and results from notes, PDF, Excalidraw, Excel, PowerPoint, draw.io and Visio files, with every match marked where it opens.

โ˜… 1 starsโ†“ 117 downloadsUpdated 23d agoAGPL-3.0
Rich Search

๐Ÿ”ค Whole word ย ยทย  ๐Ÿงฎ Regex ย ยทย  ๐Ÿ“ Search by folder ย ยทย  ๐Ÿ—‚๏ธ Search by file type ย ยทย  ๐Ÿงฉ Cross-format search ย ยทย  ๐Ÿ–๏ธ Highlight on open

Latest release Total downloads License Obsidian community plugin Donate via PayPal

Features ยท Cross-format ยท Install ยท Settings ยท Development ยท ไธญๆ–‡

WeChat public account
Follow on WeChat for more Obsidian plugins & tools

Other plugins I build
PluginDescriptionInstall page
Rich TableSpreadsheet-like tables in notes, and a viewer for Excel files; their content is searchable from Rich SearchOpen in Obsidian
Rich ViewShow draw.io, Visio and PowerPoint right in your notes; their text is searchable from Rich SearchOpen in Obsidian

A powerful cross-file search tool for Obsidian. It matches whole words and regular expressions, limits the search to the folders and file types you choose, and searches the text inside PDF, Excalidraw, Excel, PowerPoint, draw.io and Visio files as well as Markdown files. Results are listed grouped by file; click one, or step through them with the arrow keys, to jump to the match, which is marked in the original.

demo


Features

Search

  • Sidebar panel: the ribbon icon or Open search. The box stays fixed; only the results scroll.
  • Whole word (works in Chinese, Japanese and Korean), regular expressions, case sensitive.
  • Search as you type; Enter searches at once.
  • Scope: include and exclude folders, and tick file types. Files outside the scope are never read.
  • History: โ†‘ / โ†“ in the box, or the history button. Restores the text, options and scope.
  • Search in a folder: right-click a folder in the file explorer.
  • Search from a note: right-click in a note. Selected text becomes the query.

Results

  • Grouped by file, shown as they are found, notes first. The first 2,000 are shown, with more on request.
  • Open a result with its line centred. Ctrl/Cmd+click opens a new tab.
  • Keyboard: โ†‘ / โ†“ move through the results; the focus stays in the list.

Replace

  • Replace with the arrow left of the box. Matches show as the old text struck out and the new text beside it.
  • One result, or Replace all after a confirmation that says how many notes and lines change.
  • Regular expressions can use $1 and $& in the replacement.
  • Markdown notes only. A line changed since the search is skipped, not guessed at.

Highlighting

  • Matches stay highlighted in open notes while the panel is open, as in VS Code.
  • The opened match is brighter, with an outline.
  • Editor, reading view and Markdown tables are all marked.
  • Only files in the scope are marked.
  • Diagrams: the text in mermaid and in SVG PlantUML is marked too.
  • Highlight colour is set in the settings.

Other formats

  • PDF: searched by page text; a result opens at its page.
  • Excalidraw: searched by the words in the drawing; a result zooms to the element.
  • Excel, PowerPoint, draw.io, Visio: through Rich Table and Rich View (see below).

Cross-format search

Notes are not the only place your text lives. Rich Search reads the text a person would actually see in other files and lists it next to your notes. It does not read raw bytes, and it does not carry its own parsers: for formats Obsidian cannot show, it asks the plugin that already renders them.

FormatNeedsWhat is searchedState
PDF (.pdf)Obsidian's built-in PDF viewerThe text of each page๐ŸŸข
Excalidraw (.excalidraw)ExcalidrawThe words in the drawing, not the compressed drawing data๐ŸŸข
Rich Table tablesRich TableWhat the table shows, not its source๐ŸŸข
Excel (.xlsx)Rich TableCell values, per sheet. A result opens at its sheet and cell.๐ŸŸข
PowerPoint (.pptx)Rich ViewSlide text. A result opens at its slide.๐ŸŸข
draw.io, Visio (.vsdx)Rich ViewShape and label text. A result opens at its page and shape.๐ŸŸข

Installation

Community plugin browser (recommended):

  1. Open Settings โ†’ Community plugins โ†’ Browse
  2. Search for Rich Search and install
  3. Enable the plugin

Manual: copy main.js, manifest.json, styles.css to <vault>/.obsidian/plugins/rich-search/

Minimum Obsidian version: 1.8.7. Works on desktop and mobile.


Settings

In the settings tab:

SettingWhat it does
Treat .excalidraw.md as Excalidraw drawingsOn: a drawing is its own file type, searched by the words in it. Off: it is an ordinary note.
Always exclude foldersOne folder per line. They are left out of every search, in addition to the folders excluded in the search panel, and searching in a folder does not bring them back.
Open results inWhere a result opens when the search panel is in its own window. Main window: the note opens there. The window of the panel: it opens to the left of the panel, and later results reuse that tab. Ctrl/Cmd+click always opens a new tab.
Match highlight colourThe background of matched words, in the results, in opened notes, in PDFs, in tables and in the Rich Table and Rich View views. Neon yellow-green by default. The match you opened uses this colour; the others use a lighter tint of it.

In the search panel's Scope section:

ControlWhat it does
Include foldersSearch only inside these. Empty means every folder.
Exclude foldersNever search these. Subtracted from the included folders.
File typesTick the types to search.

Limitations

  • A scanned PDF with no text layer cannot be searched.
  • A PlantUML diagram drawn as PNG has no text to highlight.
  • Matches inside a diagram are all drawn the same; the opened one is not brighter.
  • Replacing cannot be undone from the panel. A note open in an editor can be undone with Ctrl+Z.

Development

npm install
npm run dev          # watch
npm test             # unit tests
npm run test:e2e     # browser tests (first run: npx playwright install chromium)
npm run verify:ci    # clean install, build, changelog check, tests

License

AGPL-3.0: derivatives must be open-sourced under the same license.

For commercial licensing: sdkxyx@gmail.com


Support the Project

Rich Search is free and open-source under the AGPL-3.0 license. If this plugin has improved your workflow, you can support its ongoing development with a voluntary donation. Every contribution helps fix bugs and add new features.

๐Ÿ’ณ PayPal

Donate via PayPal

๐Ÿงง WeChat Pay / Alipay

WeChat PayAlipay
WeChat Pay donation QR codeAlipay donation QR code

Thank you for your support! ๐Ÿ™


Feedback

Issues and feature requests: GitHub Issues


Star History Chart

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.