Skip to content

macOS: equalize splits when double tapping on SplitView divider - #9524

Merged
bo2themax merged 1 commit into
ghostty-org:mainfrom
seankit:seankit/macos-divider-doubletap-split-equalize
Nov 9, 2025
Merged

bo2themax merged 1 commit into
ghostty-org:mainfrom
seankit:seankit/macos-divider-doubletap-split-equalize

Conversation

@seankit

@seankit seankit commented Nov 9, 2025 •

Copy link
Copy Markdown
Contributor

Resolves Issue #8357

Implementation

Following the existing onResize callback pattern in TerminalSplitTreeView, I added an onEqualize callback to SplitView. When a divider is double-tapped, the callback retrieves a surface from that TerminalView's SplitTree and calls splitEqualize to equalize the entire tree.

Context

There is an existing PR #8364 that implements this feature but uses focusedSurface, which doesn't work for unfocused windows. Since that PR has been inactive for a few months after requested changes, I've implemented this alternative approach.

Credit to @liby for that initial implementation!

AI Usage

I chatted with Claude Code in Plan mode to understand the relationship between surfaces and the split tree/split views, but I wrote all the code myself.

Screenshot

ghostty-split-equalize.mov

@bo2themax bo2themax left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, thanks!

@bo2themax
bo2themax merged commit 84082c2 into ghostty-org:main Nov 9, 2025
54 checks passed
@github-actions github-actions Bot added this to the 1.2.4 milestone Nov 9, 2025
@mitchellh mitchellh modified the milestones: 1.2.4, 1.3.0 Feb 22, 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.

3 participants