Repository navigation
Nexus: wrap rows on narrow windows instead of cutting them - #37
Merged
Merged
Conversation
…edge On a narrow window (a monitor turned vertical) several rows ran past the right edge and were cut: tool labels, the "Updated <file>" line, diff-card code lines, the live status line, the rotating tip and the footer status. - every message's rows are fitted to the window once, before they are cached: a row wider than the window wraps, with continuation rows hanging under its text (past the indent, connector, glyph or diff gutter) - diff-card code lines wrap under the line-number gutter and keep their red/green background - the git diff view no longer clips its rows - the live status line and the tip wrap instead of being cut - the footer splits onto up to 4 rows when the hint and the status do not fit side by side (windows 20+ rows tall; shorter ones keep one row) - a collapsed output line that is cut says so with a trailing ellipsis - the command approval card shows the whole command (it was cut at 80 characters, so a long command could be approved without being seen)
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.
On a narrow window (for example a monitor turned vertical) several TUI rows ran past the right edge and were cut off: tool labels, the "Updated " line, diff-card code lines, the live status line, the rotating tip and the footer status.
Changes
fitRowsinbodyLines): any row wider than the window wraps, with continuation rows hanging under the row's text (after the indent, the connector, a status/spinner glyph or the diff gutter). It runs once per message before the per-message cache stores the rows, so the busy-frame hot path is unchanged.Verified
npm test(temp HOME): all suites pass; 4 new regression checks intest/visual-audit.test.js, and the F18 tip check updated from "ends with an ellipsis" to "wraps".