feat(tui): pane-ordinal badges link split panes to session-list rows - #1251
Merged
Conversation
Contributor
Author
|
Demo (after-only — brand-new affordance): three shell sessions, three panes. What to look for:
Video: pane-ordinals.mp4 (23s — splits being created, then badges appearing as the layout goes multi-pane) |
Contributor
Author
|
Updated per feedback: the pane badge moved from inside the title to on top of the border, at the top-left corner (painted after the pane renders, so every pane — session, service, project, empty — wears it uniformly; all the title-offset math reverted). Video: pane-ordinals-corner.mp4 |
With two or more split panes, each pane wears a 1-based layout-order ordinal as a single-digit badge over a highlight background: - in the pane title, immediately before the status glyph - in the first column of the session list row of every visible session Badges replace an existing cell (the marker gutter on depth-0 rows, the first rail/indent cell on nested rows) so no column or title offset ever moves. Brightness tracks the focused pane: its badge wears the selection colors, others the inactive highlight. A single pane shows no badges. Spec 0199 records the decision.
…corner Move the pane badge from inside the title (before the status glyph) onto the border's top-left corner cell, painted after the pane renders. Every pane — session, service, project, empty, diff overlay — now wears its number the same way at its geometric anchor, and the title layout math (label budget, name hit-rect) reverts to its pre-badge form. Spec 0199 updated.
edwin-zvs
force-pushed
the
split-pane-ordinals
branch
from
August 16, 2026 18:23
14061c0 to
0275ac4
Compare
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
With two or more split panes open, locating a pane's session in the session list (and the reverse) meant reading and comparing titles. This PR gives each pane a 1-based ordinal in layout order, rendered as a single-digit badge (digit over a highlight background) in two places that always agree:
Design points (recorded in
specs/0199-split-pane-ordinal-badges.md):Testing
pane_ordinals_follow_layout_order_and_prefer_the_active_pane(app): single-pane empties, layout-order numbering, active-pane preference, slot stability when a pane empties.pane_ordinal_badge_replaces_the_first_cell_without_moving_columns+pane_ordinal_badge_brightness_tracks_the_active_pane(ui): width invariance at every depth, badge-first placement, marker survival on nested rows, >9 fallback, style split.cargo testgreen.🤖 Generated with Claude Code