Skip to content

Splits do not redistribute space evenly when added #3835

Closed

Description

@em

This works perfectly in iterm2 but is clunky in ghostty.

Adding new splits should divide the space evenly, not cut the focused one in half:

Do a split, split twice:

Iterm2:

Image

Ghostty:
Image

Activity

  1. changed the title [-]Splits do not redistribute space to evenly divide when added[/-] [+]Splits do not redistribute space evenly when added[/+] on Dec 29, 2024
  2. jmckillican commented on Dec 29, 2024

    @jmckillican

    I'm not really sure that because another terminal does it that way Ghostty needs to do it too? personally I'd rather not have an existing split or window shrink down just because I'm adding another split or multiples and affecting all my existing sizes automatically.

  3. JakeWharton commented on Dec 29, 2024

    @JakeWharton

    Yeah the question is really whether you are splitting the whole window or splitting the split. Perhaps a new command could redistribute space evenly across one axis for the current split's position.

  4. em commented on Dec 29, 2024

    @em
    Author

    Mmm, rationale isn't "iterm2 does it therefore it's right". Iterm2 just has far more development and has implemented these refinements, it's obviously the right way to do it because 1 - the user wants 3 columns, almost always would want them even width, and not doing this means the user has to drag it every time to get the most commonly desired layout. Not wanting them even could be desired but that's an edge-case. The layout algorithm should target the most common expectation and only require an extra step to adjust for the less common one.

    If we already have an astoundingly good terminal like iterm2 we can look to it for inspiration... this project would likely not exists if iterm2 wasn't mac-only, it's already extremely good on macos and incredibly refined. It's the care and thought that went into these small details that makes it so good.

  5. locked and limited conversation to collaborators on Dec 29, 2024
  6. converted this issue into a discussion #3839 on Dec 29, 2024
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