Add shell panel, resizable splits, help dialog, and panel state persistence#4
Merged
bluestreak01 merged 3 commits intomasterfrom Mar 24, 2026
Merged
Add shell panel, resizable splits, help dialog, and panel state persistence#4bluestreak01 merged 3 commits intomasterfrom
bluestreak01 merged 3 commits intomasterfrom
Conversation
Help dialog (F1): - Scrollable overlay showing all shortcuts grouped by context - Sections: File Panels, File Operations, CI, Terminal, Viewer, Editor, Application - Up/Down/PgUp/PgDn/Home/End to scroll, Esc/F1/q to close - Content built once via OnceLock (zero allocation per frame) Selection UX: - Selected+active item shows dark brown on cyan (distinct from normal highlight) - Shift+Up/Down now toggles selection (unselects already-selected items) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Shell panel: - Ctrl+O toggles a shell ($SHELL) at the bottom of the active panel - Same vertical split as CI panel (60/40, or 40/30/30 with both) - F1 switches focus, Ctrl+O closes, Tab cycles through all panels - Independent per-side (left and right can each have their own shell) - Scrollback, mouse scroll, auto-close on exit Terminal improvements: - Hardware cursor shown for shell panels, hidden for Claude Code (show_cursor flag) - Refactored TerminalPanel: spawn_cmd base with spawn_claude/spawn_shell constructors - Fixed focus state leak: opening Claude terminal now clears shell_focused Bug fix: - Shell click detection uses actual rendered rect (shell_panel_areas) instead of estimated 40% offset, which was wrong when CI panel was also open - Shell resize uses actual area dimensions instead of estimates Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…nel state Terminal refactor: - Claude panel now opens maximized on opposite side (was replacing entire panel) - Per-side arrays: claude_panels[2] replaces singleton terminal_panel - Shell and Claude can coexist on different sides - Split ratios adjustable with Alt+Up/Down (2% increments, 20-80% range) - Alt+Enter toggles maximize (Claude always maximized, shell/CI toggleable) - When Claude maximized, entire column is Claude (CI/shell/file panel hidden) Panel state persistence: - Open bottom panels (CI, shell, Claude) saved to state.json on exit - Restored on restart: shell respawns, Claude resumes with -c flag - Claude spawn directory saved separately (may differ from panel dir) - Split ratios persisted per panel type - PTY sizes synced with rendered areas after first render Bug fixes: - git status uses --no-optional-locks to avoid index.lock conflicts with Claude - git cache refresh interval increased from 2s to 30s (watcher handles real-time) - File panel skipped when 0-height (prevents rendering artifacts when maximized) - PTY resize after every render (fixes Alt+Up/Down not updating terminal size) - Resize constants extracted (SPLIT_RESIZE_STEP, SPLIT_MIN/MAX/DEFAULT_PCT) Help dialog and README updated with all new keybindings. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Shell Panel (Ctrl+O)
$SHELLat the bottom of the active panelClaude Code Panel (F12) — Refactored
claude_panels[2]) — can coexist with shell on the other sideclaude -c(continues last session in the original directory)Resizable Splits
SPLIT_RESIZE_STEP,SPLIT_MIN/MAX/DEFAULT_PCTHelp Dialog (F1)
OnceLock(zero allocation per frame)Selection UX
Panel State Persistence
state.jsonon exit-c, CI reopens for branchBug Fixes
git statususes--no-optional-locksto avoidindex.lockconflicts when Claude runsgit commitTest plan
-cflag in correct directorygit commit— no index.lock error🤖 Generated with Claude Code