Skip to content

feat: add in-editor search & replace with regex support#33

Merged
j4rviscmd merged 2 commits intomainfrom
feat/editor-search-replace
Mar 24, 2026
Merged

feat: add in-editor search & replace with regex support#33
j4rviscmd merged 2 commits intomainfrom
feat/editor-search-replace

Conversation

@j4rviscmd
Copy link
Copy Markdown
Owner

Summary

  • Add a Notion-style footer search panel with Cmd/Ctrl+F shortcut
  • Support match highlighting (green for matches, teal for current), smooth scroll navigation, case-sensitive toggle, and regex toggle
  • Implement individual replace and replace-all functionality
  • Built on a custom ProseMirror plugin with mutable config bridge pattern (no new npm dependencies)

Test plan

  • Open search with Cmd/Ctrl+F, verify panel appears at bottom
  • Type a search query, verify matches are highlighted
  • Press Enter/Shift+Enter to navigate between matches with smooth scroll
  • Toggle case sensitivity (Aa) and verify results update
  • Toggle regex (.*) and verify regex patterns work
  • Test replace individual and replace all
  • Test replace with empty string (deletion)
  • Verify IME input (Japanese) doesn't trigger Enter navigation
  • Close search with Escape, verify highlights are cleared
  • Verify scrolling works while search panel is open
  • Verify pre-filled text when opening with text selected

🤖 Generated with Claude Code

j4rviscmd and others added 2 commits March 24, 2026 15:17
Implement a Notion-style footer search panel with Cmd/Ctrl+F shortcut,
match highlighting, smooth scroll to matches, case-sensitive toggle,
regex toggle, and individual/replace-all functionality. Built on a
custom ProseMirror plugin with mutable config bridge pattern.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@j4rviscmd j4rviscmd merged commit a0f37b1 into main Mar 24, 2026
@j4rviscmd j4rviscmd deleted the feat/editor-search-replace branch March 24, 2026 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant