Skip to content

Feature request: Splits equalizing on splitting #3861

Closed

Description

@jonathanj

(I'm posting this as an issue, since the discussion appears to have gone unanswered, maybe 2 weeks wasn't long enough? Apologies if so.)

Discussed in #2947

Originally posted by jonathanj December 12, 2024
In #831 the equalize-splits command was added, I'd like to suggest going one step further: Have an option to automatically equalize splits after splitting. iTerm 2 splits behave this way by default.

There are some quirks to equalizing though, for example if I do: split right, split right, split bottom, split right:

image

If I equalize splits now, I would expect that my right splits each become 1/3 wide, and my bottom split becomes 1/2 high, however that's not quite what happens:

image

The right splits are not divided equally into thirds, and the bottom split is not divided equally into halves. I'm not sure I can understand what happened, but it wasn't what I was expecting. If I modify my sequence slightly in ghostty, it will produce the same thing as iTerm 2: split right, split right, equalize splits, split bottom, split right

For reference, this is what my sequence of splits produces in iTerm 2:

image

Activity

  1. JakeWharton commented on Dec 29, 2024

    @JakeWharton
  2. jonathanj commented on Dec 29, 2024

    @jonathanj
    Author

    Thanks for the discussion link, knowing it was a conscious decision helps, and the proposal in #2227 sounds good.

    My expectation comes from iTerm2 and vim, which behave similarly, although Ghostty behaves like tmux (which I seldom use). I see I'm not the only person who had different expectations, some clarification in the splitting docs could help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions