Skip to content

feat(search): global full-text search across open notes - #19

Merged
trexolab-solution merged 1 commit into
mainfrom
feature/global-search
Jul 6, 2026
Merged

feat(search): global full-text search across open notes#19
trexolab-solution merged 1 commit into
mainfrom
feature/global-search

Conversation

@trexolab-solution

Copy link
Copy Markdown
Owner

Add a Ctrl+Shift+F search panel that scans the content of every open note tab and lists matches grouped by note with line numbers and highlighted snippets. Selecting a result jumps to the note and reveals the exact matching line.

  • src/lib/searchNotes.ts: pure, testable per-line search (case-insensitive, skips whiteboards/empty notes, capped per note) + unit tests
  • src/components/ui/GlobalSearch.tsx: modal UI (reuses cmdk overlay), keyboard nav, snippet highlighting/windowing
  • store: pendingJump gains optional line; navigateToNote(id, text, line)
  • MonacoMarkdownEditor: reveal the match on the requested line; add the Ctrl+Shift+F action (mirrors the command-palette event pattern)
  • wire shortcut (useGlobalShortcuts), command-palette entry (useCommands), and App mount/event listener
  • .gsearch styles in src/styles/ui.css

Add a Ctrl+Shift+F search panel that scans the content of every open
note tab and lists matches grouped by note with line numbers and
highlighted snippets. Selecting a result jumps to the note and reveals
the exact matching line.

- src/lib/searchNotes.ts: pure, testable per-line search (case-insensitive,
  skips whiteboards/empty notes, capped per note) + unit tests
- src/components/ui/GlobalSearch.tsx: modal UI (reuses cmdk overlay),
  keyboard nav, snippet highlighting/windowing
- store: pendingJump gains optional line; navigateToNote(id, text, line)
- MonacoMarkdownEditor: reveal the match on the requested line; add the
  Ctrl+Shift+F action (mirrors the command-palette event pattern)
- wire shortcut (useGlobalShortcuts), command-palette entry (useCommands),
  and App mount/event listener
- .gsearch styles in src/styles/ui.css

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@trexolab-solution
trexolab-solution merged commit fa543ca into main Jul 6, 2026
1 check passed
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