Advanced search
pendingby Cheng Lingfei
Extend built-in Search by adding VS Code-like search controls.
Advanced search
Advanced search extends Obsidian's built-in Search view by adding VS Code-like search controls:
Wfor whole-word matching.*for regular-expression matching- Files to include and Files to exclude inputs under the main search box
Purpose
This plugin is for users who want more precise filtering in Obsidian global search while keeping the native search workflow.
You can keep using Obsidian's original Search view, but with extra controls for:
- whole-word search
- regex search
- path-based include/exclude filtering
Usage
- Open Obsidian's Search view.
- Type your content query in the main search box.
- Toggle
Wfor whole-word mode if needed. - Toggle
.*for regex mode if needed. - Optionally fill Files to include and Files to exclude.
- Results refresh automatically whenever query or toggle/filter state changes.
Matching behavior
For include/exclude filters:
- Plain value with no glob (
* ? [ ] { }): - If it resolves to an existing file, it matches that file exactly.
- If it resolves to an existing folder, it matches all files under that folder.
- Name-only value expands to both same-name files and same-name folders.
- Value with glob characters uses glob matching.
- To force folder-only behavior, add a trailing slash (for example
test/). - To force file-only behavior, use full file name or relative file path.
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.