mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-01-05 21:07:56 +00:00
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 https://github.com/user-attachments/assets/0efd70ef-c90e-4b50-b853-b05e2ca2be67