feat: add C-a s to toggle the sidebar in boo ui#50
Merged
Conversation
The sidebar in boo ui was always visible. C-a s (and C-a C-s) now hides it, giving the viewport the full terminal width, and brings it back at its old width. The hidden state survives terminal resizes, and the sidebar arrows (C-a Up/Down browse, C-a Left/Right resize) reveal a hidden sidebar before acting so their effect stays visible. Closes #47
This was referenced Jun 12, 2026
Merged
Closed
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.
Closes #47.
The sidebar in
boo uiwas always visible.C-a s(andC-a C-s) now hides it, giving the viewport the full terminal width, and pressing it again brings the sidebar back at its old width.Behavior
C-a stoggles the sidebar; the focused session's pty resizes with the viewport, exactly like a sidebar resize does.SIGWINCH), like the width preference.C-a Up/Down(browse) andC-a Left/Right(resize). Hiding cancels an active browse for the same reason.boo help ui, and the README mention the new bind.Testing
waitScreenhelper alongsidewaitLastRow.s sidebarand the test asserts its full text renders. The bar remains clipped gracefully on narrower terminals (appendClipped), as before.zig build test-all: 136/136 pass;zig fmt --checkclean.Implementation notes
Layout, next to the geometry it changes (viewportCols,viewportX,hit), so renderer and mouse code need no special cases beyond skipping the sidebar/separator segments incomposeRow.sidebar_wis preserved while hidden, so show restores the previous width, including a width set byC-a Left/Right.relayoutandapplySidebarWidth; it is now factored intoviewportChanged()and reused by the toggle.This PR was generated by Coder Agents on behalf of @kylecarbs.