Skip to content

feat: implement split pane with active indicator and pane management#71

Merged
pmqueiroz merged 4 commits into
mainfrom
feat/split-pannels
May 15, 2026
Merged

feat: implement split pane with active indicator and pane management#71
pmqueiroz merged 4 commits into
mainfrom
feat/split-pannels

Conversation

@pmqueiroz
Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds split-pane support to Nova’s terminal UI, including an active-pane indicator, pane-close controls, and grid/PTY management so two terminals can run side-by-side within a single tab.

Changes:

  • Introduces a SplitPane model on Tab and tracks which pane is active for input routing.
  • Updates the terminal renderer and main view layout to display two panes with an active indicator and close buttons.
  • Extends resize, PTY subscription, PTY ready/exit handling, and input/output plumbing to support a second PTY/grid.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
src/ui/tab.rs Adds SplitPane struct and split-pane state to Tab.
src/ui/components/term.rs Refactors terminal widget to render from a Grid directly (usable for both panes).
src/ui/app_state/view.rs Renders split layout with active indicator and close buttons.
src/ui/app_state/update/window.rs Resizes both pane grids and sends PTY resize commands in split mode.
src/ui/app_state/update/tabs.rs Adds split-pane creation and close/promote-left-pane handling.
src/ui/app_state/update/mouse.rs Tracks active pane on click (split vs primary).
src/ui/app_state/update/mod.rs Wires new split-related messages and routes PTY ready/exit to split panes.
src/ui/app_state/update/input.rs Routes input/output for split PTY and maintains split grid state.
src/ui/app_state/subscription.rs Starts a second PTY worker subscription for split panes.
src/ui/app_state/message.rs Adds messages for split/open/close actions.
src/ui/app_state/helpers.rs Adds calc_grid_split for sizing split-pane grids.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/ui/app_state/update/mouse.rs
Comment thread src/ui/app_state/update/input.rs
Comment thread src/ui/app_state/update/input.rs
Comment thread src/ui/app_state/update/input.rs
Comment thread src/ui/app_state/view.rs
Comment thread src/ui/app_state/update/window.rs Outdated
Comment thread src/ui/app_state/helpers.rs
Comment thread src/ui/app_state/update/tabs.rs
Comment thread src/ui/app_state/update/tabs.rs Outdated
Comment thread src/ui/app_state/subscription.rs
@pmqueiroz pmqueiroz merged commit 24fb272 into main May 15, 2026
1 check passed
@pmqueiroz pmqueiroz deleted the feat/split-pannels branch May 15, 2026 02:42
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.

2 participants