-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Implement view transpose #2461
Implement view transpose #2461
Conversation
Change the layout of existing split view from horizontal to vertical and vica-versa. It only effects the focused view and its siblings, i.e. not recursive. Command is mapped to 't' or 'C-t' under the Window menus.
Is this feature good to have? I don't think I have seen this in other editors and also not sure what is the use case. |
I'd say it has it's uses, and it's definitely useful with support for swapping views so you can quickly rearrange what you are working with without closing splits. For example, if you have something in a It's probably more of a convenience feature than a must have. |
I do use this in tmux to cycle through split layouts. Agree that it's a nice to have, but it would indeed be nice. |
@@ -360,6 +360,7 @@ impl MappableCommand { | |||
jump_view_left, "Jump to the split to the left", | |||
jump_view_up, "Jump to the split above", | |||
jump_view_down, "Jump to the split below", | |||
transpose_view, "Transpose splits", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great feature! Thank you for adding it
I must say when I read the words "transpose view" I assumed it would swap the contents of two windows, not swap from a horizontal split to a vertical split. However, reading the description "transpose splits" made it immediately clear.
Change the layout of existing split view from horizontal to vertical and vica-versa. It only effects the focused view and its siblings, i.e. not recursive. Command is mapped to 't' or 'C-t' under the Window menus.
Change the layout of existing split view from horizontal to vertical and vica-versa. It only effects the focused view and its siblings, i.e. not recursive. Command is mapped to 't' or 'C-t' under the Window menus.
Change the layout of existing split view from horizontal to vertical and
vica-versa. It only effects the focused view and its siblings, i.e. not
recursive.
Command is mapped to 't' or 'C-t' under the Window menus.