wez / wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
https://wezfurlong.org/wezterm/
Other
17.85k stars 799 forks source link

Support automatic main-horizontal and main-vertical layouts #5860

Closed matklad closed 2 months ago

matklad commented 3 months ago

Is your feature request related to a problem? Please describe. As a heavy user of splits (and current user of kitty), I'd love to tell the terminal "I want a new split", and let the computer automatically decide on the good size and placement of the new set of splits. Right now, the split just splits the current panel in two, which creates very unbalanced splits:

image

Describe the solution you'd like There's potentially many solutions to this problem! One is to implement tmux-style main-horizontal and main-vertical layouts, as described at https://github.com/wez/wezterm/issues/157#issuecomment-697809130. This is what I currently use with kitty (I don't use tmux, but looks like kitty does the same algorithm):

image

But perhaps there are more imaginative solutions! For example, in emacs there are golden-ratio mode and zoom mode:

They work by automatically enlarging the pane that is currently focused.

Describe alternatives you've considered I think wezterms zoom (which makes the current pane full-screen) can help a bit here, but it's not the right solution --- I have plenty of space on my display to have one pane large, and a bunch of panes small, as long as the small ones are not exponentially small.

Additional context Installed the thing today, love it very much so far, thanks a bunch for a lovely tool :heart:

matklad commented 2 months ago

Ahh, actually this looks like a dupe of https://github.com/wez/wezterm/issues/4678 which for some reason wasn't found by my initial search

github-actions[bot] commented 1 month ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.