Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keybind to change pane layout (horizontal to vertical) #2121

Closed
davxy opened this issue Jan 28, 2023 · 4 comments
Closed

Keybind to change pane layout (horizontal to vertical) #2121

davxy opened this issue Jan 28, 2023 · 4 comments

Comments

@davxy
Copy link

davxy commented Jan 28, 2023

If I have my window horizontally splitted in two panes, is there an action that I can associate to a keybind
(or a keybind I'm not aware of) that allows me to change the layout to two vertically splitted panes?

Or something like tmux ctrl+b + space to change how the panes are organized within the window

As an easy solution I was expecting that in "Pane" mode (ctrl+b) I can do that using 'l' or 'r'.

As a hack is possible to do that by:

  1. first create a temporary pane on the right of one of the two horizontal panes
  2. move the temporary pane down (or up)
  3. close the "temporary pane"
  4. now I have the original two horizontal panes as two vertical panes

But I don't think this is the proper solution 😃

@davxy davxy changed the title Keybind to change pane layout Keybind to change pane layout (horizontal to vertical) Jan 28, 2023
@imsnif
Copy link
Member

imsnif commented Jan 30, 2023

This will come in the next version, here's a preview (the default layout will come with "vertical", "horizontal" and "stacked" swap layouts for tiled panes and "staggered", "expanded" and "spread" for floating panes).
img-2023-01-25-095443

EDIT: you'll also be able to configure these to your liking btw

@davxy
Copy link
Author

davxy commented Jan 30, 2023

Is there already an open PR for this feature?

@imsnif
Copy link
Member

imsnif commented Jan 30, 2023

Not yet, still working out the kinks!

@davxy
Copy link
Author

davxy commented Jun 3, 2023

closed by #2167

@davxy davxy closed this as completed Jun 3, 2023
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

No branches or pull requests

2 participants