Skip to content

feat: UX improvements - resizable panes, multi-query, better results nav#5

Merged
muk2 merged 1 commit intomainfrom
feature/issue-3-ux-improvements
Feb 19, 2026
Merged

feat: UX improvements - resizable panes, multi-query, better results nav#5
muk2 merged 1 commit intomainfrom
feature/issue-3-ux-improvements

Conversation

@muk2
Copy link
Owner

@muk2 muk2 commented Feb 17, 2026

Summary

Addresses key UX improvements from #3 to make the query editing and results experience smoother and more production-ready:

  • Resizable editor/results panes: Use Ctrl+Shift+Up/Down to dynamically resize the editor and results split (15%-85% range, 5% increments)
  • Multi-query support: Execute the query at the cursor position. Query boundaries are detected by ; while correctly handling single-quoted strings, double-quoted identifiers, -- line comments, and /* */ block comments
  • Active query gutter indicator: A vertical bar () appears in the editor gutter next to the active query block, making it clear which query will be executed
  • Snowflake-style results navigation: Tab/Shift+Tab navigates between columns in the results table. Esc returns focus to the editor
  • Enhanced results header: Shows row count, column count, execution time, and current cell position ([R1/C3])
  • Auto-scroll results: Selected row stays visible when navigating with arrow keys or Page Up/Down
  • Updated help overlay: All new keybindings documented

New Keybindings

Key Context Action
Ctrl+Shift+Up Editor Shrink editor / grow results
Ctrl+Shift+Down Editor Grow editor / shrink results
Tab Results Next column
Shift+Tab Results Previous column
Esc Results Return to editor

Test plan

  • Open editor with multiple queries separated by ;
  • Verify cursor-aware query execution (Ctrl+Enter executes only the query at cursor)
  • Verify gutter indicator highlights the correct query block
  • Test Ctrl+Shift+Up/Down resizes panes smoothly
  • Test Tab/Shift+Tab navigates columns in results
  • Test Esc from results returns to editor
  • Verify results title shows position indicator [R/C]
  • Test auto-scroll with large result sets
  • Verify strings with ; inside quotes don't break query splitting
  • Verify -- comments with ; don't break query splitting

🤖 Generated with Claude Code

- Add resizable editor/results split pane (Ctrl+Shift+Up/Down)
- Multi-query support: execute query at cursor position with `;` boundary
  detection that respects strings, comments, and quoted identifiers
- Active query gutter indicator in editor (vertical bar on active block)
- Tab/Shift+Tab column navigation in results (Snowflake-style)
- Esc to leave results and return to editor
- Row/column position indicator in results title bar
- Show column count alongside row count in results header
- Auto-scroll results to keep selected row visible
- Reset scroll position when switching between result sets
- Updated help overlay with new keybindings

Closes #3

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@muk2 muk2 merged commit a5b5e15 into main Feb 19, 2026
8 checks 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