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

Add support for resizing panes using vim motions #21038

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

AidanV
Copy link
Contributor

@AidanV AidanV commented Nov 22, 2024

Closes #8628

Release Notes:

  • Added support for resizing the current pane using vim keybinds with the intention to follow the functionality of vim
    • "ctrl-w +" to make a pane taller
    • "ctrl-w -" to make the pane shorter
    • "ctrl-w >" to make a pane wider
    • "ctrl-w <" to make the pane narrower
  • Changed vim pre_count and post_count to globals to allow for other crates to use the vim count. In this case, it allows for resizing by more than one unit. For example, "10 ctrl-w -" will decrease the height of the pane 10 times more than "ctrl-w -"
  • This pr does not add keybinds for making all panes in an axis equal size and does not add support for resizing docks. This is mentioned because these could be implied by the original issue

@maxdeviant maxdeviant changed the title Resizing panes using vim motions Add support for resizing panes using vim motions Nov 22, 2024
@notpeter notpeter added the cla-signed The user has signed the Contributor License Agreement label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Resize windows using the keyboard
2 participants