Skip to content

feat: add split panes with focus and pane-scoped keys - #2

Merged
autoantohaki merged 1 commit into
feat/keybindingsfrom
feat/panes
Oct 21, 2026
Merged

autoantohaki merged 1 commit into
feat/keybindingsfrom
feat/panes

Conversation

@autoantohaki

Copy link
Copy Markdown
Member

Requested by mau

Before: an application drew its own boxes and had no notion of which region was active.

After: Split and Pane divide the screen into nested regions sized in cells (28), percentages ('30%'), or shares ('2fr'). PaneFocusProvider binds Tab and Shift+Tab to move focus, the focused pane's border and title light up, and usePaneKeybindings registers keys that only the focused pane receives. The demo now shows a host list, a detail pane, and an events pane.

How: sizes map onto Yoga flex styles along the parent split's axis. PaneFocus keeps panes in order then mount order, honours an initialFocus that mounts late, and moves focus to a neighbour when the focused pane unmounts. Guide in docs/panes.md, with tests.

Stacked on the keybindings PR; merge that first.

@autoantohaki
autoantohaki merged commit 8b77a77 into feat/keybindings Oct 21, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant