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

fix: autoresize immediately on mode change #128

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

willothy
Copy link
Collaborator

@willothy willothy commented Aug 24, 2023

Ensures that windows are properly resized immediately when the mode is changed, instead of on the next window switch.

Also adds several tests for resizing behavior.

@willothy willothy marked this pull request as ready for review September 18, 2023 19:23
@willothy willothy force-pushed the resizer-fix-2 branch 2 times, most recently from 9e83ba7 to bbb9006 Compare September 18, 2023 19:32
@willothy willothy force-pushed the resizer-fix-2 branch 2 times, most recently from 9ace770 to a8502b9 Compare September 18, 2023 23:14
Copy link
Collaborator

@cryptomilk cryptomilk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By mode change you mean a focus command is called?

tests/test_autoresize.lua Outdated Show resolved Hide resolved
tests/test_autoresize.lua Outdated Show resolved Hide resolved
@willothy
Copy link
Collaborator Author

By mode change you mean a focus command is called?

When the resize goal is changed, so essentially yes. Maybe "goal change" is better wording, just want sure what to call it.

@willothy willothy force-pushed the resizer-fix-2 branch 3 times, most recently from 39d1149 to 5c90e07 Compare September 19, 2023 07:05
ensures that windows are properly resized immediately when
the mode is changed, instead of on the next window switch.
@willothy
Copy link
Collaborator Author

Ok, cleaned up copy-pasted comments, changed the test names, and rebased on top of master.

@cryptomilk
Copy link
Collaborator

LGTM. Thanks!

@cryptomilk cryptomilk merged commit 6d2b6ad into nvim-focus:master Sep 19, 2023
6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants