Enhanced search and replace

by liuhaoxd
5
4
3
2
1
Score: 35/100

Description

This plugin has not been manually reviewed by Obsidian staff. Inline editor search and replace panel with match case, whole word, and regex.

Reviews

No reviews yet.

Stats

stars
29
downloads
0
forks
1
days
NaN
days
NaN
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
0
commits

Latest Version

Invalid date

Changelog

README file from

Github

Enhanced search and replace

中文 README

An inline editor search and replace panel for Obsidian.

Features

  • Inline find panel in the editor.
  • Find and replace mode.
  • Match case, whole word, and regex.
  • Highlights matches in the current editor.
  • Esc closes the panel globally (even when the input is not focused).

Hotkeys

Bind hotkeys for this plugin via Obsidian settings:

  1. Open Settings → Hotkeys.
  2. Search Enhanced search and replace (or just Find).
  3. Bind these commands:
    • Enhanced search and replace: Find
    • Enhanced search and replace: Find and replace

Suggested defaults:

  • Windows / Linux: Ctrl+F → Find, Ctrl+H → Find and replace
  • macOS: Cmd+F → Find (set the other one to your preference)

You can also trigger via Command Palette: Cmd/Ctrl+P and search Enhanced search and replace: Find.

Install (manual)

  • Copy main.js, manifest.json, and styles.css to:
    • <Vault>/.obsidian/plugins/enhanced-search-replace/
  • Reload Obsidian and enable the plugin.

Development

npm install
npm run dev

Build

npm run build

Notes

  • The search UI is implemented as a CodeMirror 6 panel.
  • Some internal editor fields (like the underlying CodeMirror view) are accessed via Obsidian runtime objects.