yan42685 / obsidian-clever-search

Helping you quickly locate the notes in your mind in the easiest way, without the need for complex search syntax to find relevant content.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Obsidian Clever Search

Enjoy swift access to your notes with minimal key presses

中文文档 | English Doc

Demo

Realtime highlight and preview

demo-search-in-file

demo-search-in-file

Privacy Mode

demo-privacy-mode

Features

Major

  • Semantic search in the vault (Windows only)
  • Fuzzy search in the vault
  • Fuzzy search inside current note
  • Realtime highlighting and precise jump to the target location
  • Toggle privacy mode (Edit mode only)
  • AutoCompletion
  • Persistent search history

Subtle Tweaks for Better UX

  • Search from selection
  • Automatically copy result text on selection
  • Remember last query text

Integrate with other plugins

  • Style Settings
  • Omnisearch
    Details New command:
    "Search in file with last Omnisearch query"

    Use case:
    When you confirm an in-vault search by Omnisearch and think there might be more matched text that are not listed by Omnisearch in current file, trigger this command will open a in-file search modal and fill the search bar with last query in Omnisearch.

    Note:
    This is just a temporary workaround for a better in-vault search. I will implement full-featured in-vault search without dependency on Omnisearch in the future.

Available Commands

Scope Name Hotkey
Item View item context Left Click
Modal Next item Ctrl-J
Modal Previous item Ctrl-K
Modal Next subItem (in-vault) Ctrl-N
Modal Previous subItem Ctrl-P
Modal Confirm item Enter or Right Click
Modal Toggle lexical / semantic search Ctrl-S
Modal Insert file link Alt-I
Obsidian Search in vault semantically undefined
Obsidian Search in vault lexically undefined
Obsidian Search in file undefined
Obsidian Search in file with last Omnisearch query (preserved as a tribute) undefined
Obsidian Toggle privacy mode undefined

Limitations

In-file Search performance may be slower when a file contains over 500k characters. However, there is no such performance limitation for in-vault search.

Installation

  • Install through BRAT and turn on Auto-update plugins at startup option to automatically install the latest version when available.
  • (Manual) installation:
    1. Download the latest main.js, style.css and manifest.json from the latest release
    2. Create a folder named clever-search in .obsidian/plugins at your vault location
    3. Move above files into the folder you created
    4. click reload plugins at Settings - Community plugins - installed plugins and enable Clever Search

Declaration

In compliance with the requirements of the Obsidian developer policy, this notice declares that this plugin downloads necessary program resources from the web into the userData directory. The specific location of these resources can be found in the plugin settings.

Support

If this plugin has been useful to you, I'd be sincerely thankful for your star⭐ or donation❤️.

image

About

Helping you quickly locate the notes in your mind in the easiest way, without the need for complex search syntax to find relevant content.

License:GNU General Public License v3.0


Languages

Language:TypeScript 87.2%Language:Svelte 6.0%Language:JavaScript 5.3%Language:CSS 1.4%