feat: resize the ui sidebar with C-a Left/Right#26
Merged
Conversation
C-a Left/Right starts a sidebar resize in boo ui, mirroring the C-a Up/Down browse: bare side arrows keep adjusting the width one column at a time, Enter keeps it, and Esc restores the width from before. The viewport and the focused session's pty resize live with every adjustment, and a completed resize is reapplied (clamped between a usable minimum and a cap that keeps the viewport a sliver) when the terminal itself resizes. Bare side arrows still forward to the focused application when no resize is active; the input parser now intercepts ESC [ C and ESC [ D the same way it does up/down arrows.
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.
What
C-a Left/C-a Rightstarts a sidebar resize inboo ui, mirroring theC-a Up/C-a Downbrowse:Left/Rightkeep adjusting the width one column per press while the resize is active.Entercompletes the resize and keeps the width.Esccancels and restores the width from before the first arrow.left/right resize enter done esc cancelwhile active, and the armed-prefix bar gainedlt/rt resize.The viewport and the focused session's pty resize live with every adjustment. A completed resize is remembered and reapplied (clamped to
[8, cols - 12], likeLayout.init's narrow-terminal floor) when the terminal itself resizes.How
ESC [ C/ESC [ Dexactly like up/down arrows;InputEvent.Arrowcarries a four-waydirenum instead of anupbool. Modified arrows (ESC [ 1;5 C) still pass through untouched.Validation
peek --jsonat every step.zig build test-all(Debug and ReleaseSafe): 120/120 pass.This PR was generated with Coder Agents on behalf of @kylecarbs.