Summary
Add find (Ctrl+F) and find-and-replace (Ctrl+H) functionality to the SQL editor with match highlighting, navigation, and replace operations.
Motivation
For longer queries, scripts, or when working with repeated patterns, find and replace is essential. This is a fundamental text editor feature present in every code editor and most SQL tools.
Proposed Behavior
Find (Ctrl+F)
- Opens a find bar at the top/bottom of the editor
- Type-ahead search with instant highlighting of all matches
Enter / Shift+Enter to navigate between matches (next/previous)- Match count displayed (e.g., "3 of 12 matches")
Escape to close the find bar- Case-sensitive toggle
Find and Replace (Ctrl+H)
- Extends the find bar with a replace input field
- Replace current match / Replace all
- Preview of replacements before applying
Acceptance Criteria
Summary
Add find (Ctrl+F) and find-and-replace (Ctrl+H) functionality to the SQL editor with match highlighting, navigation, and replace operations.
Motivation
For longer queries, scripts, or when working with repeated patterns, find and replace is essential. This is a fundamental text editor feature present in every code editor and most SQL tools.
Proposed Behavior
Find (Ctrl+F)
Enter/Shift+Enterto navigate between matches (next/previous)Escapeto close the find barFind and Replace (Ctrl+H)
Acceptance Criteria