Rich Search

by sdking
5
4
3
2
1
Score: 50/100

Description

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 to jump to the match.

Reviews

No reviews yet.

Stats

1
stars
118
downloads
0
forks
11
days
6
days
6
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
14
commits

Latest Version

7 days ago

Changelog

🚀 New features

  • mark matches only in files the search covers, and tell other plugins which files those are
  • exclude chosen folders from every search from the settings
  • choose whether results open in the main window or beside a pop-out panel

🐛 Bug fixes

  • keep the focus in the results list after clicking a result, so the arrow keys keep working

📝 Documentation

  • update

Full changelog: https://github.com/SdKay/obsidian-rich-search/compare/0.1.0...0.1.1

README file from

Github

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

  • A search panel in the sidebar (ribbon icon or the Open search command): drag it to either side. The query box and options stay fixed while only the results scroll.
  • Whole-word matching that also works in Chinese, Japanese and Korean text
  • Regular expressions, with a clear message instead of an error while you are still typing the pattern
  • Case sensitivity toggle
  • Searching starts as you type, and Enter searches at once. A new query cancels the one still running.
  • Scope: include folders and exclude folders (an exclusion inside an included folder carves it out), and tick the file types to search. Skipped files are never read.
  • Open a result in the main area (Ctrl/Cmd+click for a new tab). A note opens with the matching line in the middle of the window, in reading view and in the editor alike.
  • Move through the results with the keyboard: ↑ / ↓ select the previous or next result and open it without taking the focus away from the list. The selected result is shown with a background, as in VS Code.
  • Matches stay highlighted in every open note, as in VS Code, for as long as the search panel is open and the query is not empty. Clicking, typing in the note and pressing Escape do not clear them. The match you opened is drawn brighter, with an outline, and the others dimmer. This works in the editor, in reading view and in Markdown tables. Only notes the search covers are marked: a note outside the folders and file types of the search is left alone, and the marks follow the scope when you change it.
  • Choose the highlight colour in the settings. Every view that shows a match uses it.
  • Search history: press ↑ / ↓ in the query box to step back and forth through earlier searches; each one restores the text, the three options and the scope. A button in the box lists them, newest first: click one to restore it, click the × after it to forget just that one, or choose Clear history.
  • Search in a folder: right-click a folder in the file explorer and choose Search in folder. The include list becomes that folder, the exclude list is cleared, and the query already in the box is searched again.
  • Excalidraw drawings are searched by the words in them, and clicking a result opens the drawing and zooms to the element (needs the Excalidraw plugin).
  • PDF files are searched by the text on each page. Clicking a result opens the page in Obsidian's viewer, and the matches on the pages you scroll through are marked. A scanned PDF with no text layer cannot be searched and is counted among the files that could not be read. The first search of a large PDF takes a while; its text is kept in memory afterwards.
  • Excel, PowerPoint, draw.io and Visio files are searched through the Rich Table and Rich View plugins, and clicking a result opens the file at the sheet and cell, the slide, or the shape (see below).
  • Many results: the first 2,000 are shown with the true total above them, and a button shows more. Results appear as they are found, notes first.

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.

Format Needs What is searched State
PDF (.pdf) Obsidian's built-in PDF viewer The text of each page 🟢
Excalidraw (.excalidraw) Excalidraw The words in the drawing, not the compressed drawing data 🟢
Rich Table tables Rich Table What the table shows, not its source 🟢
Excel (.xlsx) Rich Table Cell values, per sheet. A result opens at its sheet and cell. 🟢
PowerPoint (.pptx) Rich View Slide text. A result opens at its slide. 🟢
draw.io, Visio (.vsdx) Rich View Shape 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:

Setting What it does
Treat .excalidraw.md as Excalidraw drawings On: a drawing is its own file type, searched by the words in it. Off: it is an ordinary note.
Always exclude folders One 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 in Where 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 colour The 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:

Control What it does
Include folders Search only inside these. Empty means every folder.
Exclude folders Never search these. Subtracted from the included folders.
File types Tick the types to search.

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: [email protected]


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 Pay Alipay

Thank you for your support! 🙏


Feedback

Issues and feature requests: GitHub Issues


Star History Chart