-
Notifications
You must be signed in to change notification settings - Fork 85
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 swap window actions #558
base: main
Are you sure you want to change the base?
Conversation
Nice addition, thanks for taking the time to develop it. |
After using it for a while, I found it occasionally confusing. To improve clarity, I added a simple animation to make it easier to see what is happening. The animation can be controlled through two new configuration values in the advanced section (not exposed via the UI, as it's probably not worth the effort):
|
Sorry for another change to this. After using this feature on an older notebook, I realized how poor the performance can be when animating window resizing during swapping. I added an option to disable the resizing part of the animation (disabled by default). This results in a much smoother experience. The updated settings are (acvanced section):
|
Just a detail, I do not like much to use floating points for this kind of calculations. In the whole project there is zero floating point, Could you modify your code so that it no longer relies on fpu? |
Otherwise I can do it myself, no problems |
This adds window actions that allow swapping the current window's position and size with the window to the left, top, right, or bottom. You can configure keyboard shortcuts to activate these actions.
The actions are named SwapL, SwapT, SwapR, and SwapB for left, top, right, and bottom, respectively.