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

Option to disable edge resize region while keeping center region #318

Closed
mesvam opened this issue Oct 30, 2022 · 7 comments · Fixed by #320
Closed

Option to disable edge resize region while keeping center region #318

mesvam opened this issue Oct 30, 2022 · 7 comments · Fixed by #320
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@mesvam
Copy link

mesvam commented Oct 30, 2022

With "snap to window edges", I find that I don't really use the edge resize anymore, only corner resize, so here's an idea: have an option to disable the horizontal/vertical region while keeping the center.

To give a better idea of what I mean
normal:
normal
sides disabled:
no side

@mesvam mesvam changed the title Disable edge resize region Option to disable edge resize region Oct 30, 2022
@RamonUnch
Copy link
Owner

RamonUnch commented Oct 30, 2022

There is no such option for the moment.
You can set the Center fraction to 0 in the advanced tab, but it will make 4 quadrants without a central region.
It is interesting, I will see if I can implement it.
Also AltSnap v1.57 is just out.

@mesvam mesvam changed the title Option to disable edge resize region Option to disable edge resize region while keeping center region Oct 30, 2022
@RamonUnch RamonUnch added enhancement New feature or request good first issue Good for newcomers labels Oct 30, 2022
@RamonUnch
Copy link
Owner

With this build (replace both AltSnap.exe and hooks.dll) you can configure the side fraction in the advanced tab on the first raw (Center/Side fraction).

sidesfract

If you set the sides fraction larger than the center fraction then it will behave as previously.
In your case you cant to set the Sides fraction to 0.

AltSnap_sidefractest_x64.zip
AltSnap_sidefractest_i386.zip

@mesvam
Copy link
Author

mesvam commented Oct 31, 2022

That was quick! Yes that works great! Though I think it would make more sense if 100% side fraction meant no edge area, rather than same as center area. This would also give you full flexibility to have a decent side area even with center area disabled, or even only side areas, if desired. See mockup:
altsnap

@RamonUnch
Copy link
Owner

To have the latest mode you can also change the center resize mode to closest side in the general tab.
For the other the reason i did not implement it s that it requires extra math and I do not work on features that I am not sure at least one persons will use.

@RamonUnch
Copy link
Owner

However I do agree that it is logical and simple to do so it will be done, just the test window will take extra time.

@RamonUnch
Copy link
Owner

AltSnap_sidefractest2_i386.zip
AltSnap_sidefractest2_ix64.zip

This one should behave as you expect, implementation was actually quite straightforward.

@mesvam
Copy link
Author

mesvam commented Nov 1, 2022

Amazing! I'll give it a shot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants