Skip to content

feat(panel): middle-click pane title bar to close (TASK-107)#96

Merged
InbarR merged 1 commit into
InbarR:mainfrom
SolomonTomer:feature/middle-click-pane-close
May 8, 2026
Merged

feat(panel): middle-click pane title bar to close (TASK-107)#96
InbarR merged 1 commit into
InbarR:mainfrom
SolomonTomer:feature/middle-click-pane-close

Conversation

@SolomonTomer
Copy link
Copy Markdown
Contributor

Mirrors the existing tab middle-click-close UX from TabBar onto the per-pane title bar so the same gesture works uniformly on tiled panes and floating panels (both render the same .terminal-pane-title element).

The new branch on the existing onMouseDown handler:

  • Bails when the click target is inside a button, input, or .status-dot-container so the rename input, X icon, and any nested buttons keep their existing semantics.
  • preventDefault suppresses Windows' middle-button auto-scroll cursor.
  • Calls closeTerminal(terminalId) for the doomed pane.

Adds a Playwright spec covering: tiled close, floating close, status-dot/X no-op, and rename-input no-op (4/4 passing).

Mirrors the existing tab middle-click-close UX from TabBar onto the
per-pane title bar so the same gesture works uniformly on tiled panes
and floating panels (both render the same .terminal-pane-title element).

The new branch on the existing onMouseDown handler:
- Bails when the click target is inside a button, input, or
  .status-dot-container so the rename input, X icon, and any nested
  buttons keep their existing semantics.
- preventDefault suppresses Windows' middle-button auto-scroll cursor.
- Calls closeTerminal(terminalId) for the doomed pane.

Adds a Playwright spec covering: tiled close, floating close,
status-dot/X no-op, and rename-input no-op (4/4 passing).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@InbarR
Copy link
Copy Markdown
Owner

InbarR commented May 8, 2026

Thanks @SolomonTomer - middle-click-to-close on the pane title bar is a great match for the existing tab UX. Spec coverage looks solid (4/4). Squash-merging.

@InbarR InbarR merged commit 2fae878 into InbarR:main May 8, 2026
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