
My first plugin: Embedding Omnisearch bar into notes or homepages
Hi there!
After my wild journey over various notes solutions, I finally returned back to Obsidian.
One plugin that I use quite often is Omnisearch (credits to scambier!). But I missed the possibility to embed the search bar into a note, that could be used e.g. as a homepage or dashboard.
Thus, I created a plugin (for transparency: with help from AI), which allows for embedding the Omnisearch bar into any note and return the search results in a paginated table with link to notes, excerpts and highlighted hits. Also a preview of the note is available.
https://github.com/fnsign/embedded-omnisearch
https://i.redd.it/yubydw7dnb0h1.gif
Here are some key features:
- Inline vault search inside any note via a fenced code block.
- Automatically switches notes containing an embedded search block into preview mode when needed.
- Accent-insensitive term matching with configurable highlight color and opacity.
- Paginated results with configurable page size.
- Results rendered as a compact table with file name, relevance score, and excerpt preview.
- Opens clicked results in preview mode.
- Hold
Altover a result row to show the full file path as a popover. - Debounced search input (350 ms).
For more, see the README on Github.
You can install it via BRAT (recommended) or manually. I've tested it with various themes, without any issues.
I'm quite happy with the results and curious about what you think.
So, I'd be happy if you tried it and leave a comment.