-
Notifications
You must be signed in to change notification settings - Fork 6.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
[FancyZones] hotkey to grow/shrink to adjacent zone #1972
Comments
what is the use case? we're thinking about resizing windows together if there is a shared border (#1193) but not this. |
@crutkas I think he means he wants a way to expand a window to fill two or more zones. For example, say you divide your screen into a 3x3 grid. FancyZones would be exponentially more powerful if you could choose multiple zones (forming a rectangle) to fit a window to. You could have one window that spans the left 3 rows, the one that spans the top 2 rows of the middle column, one window on the bottom row of the middle column, and three windows in the last column. Say you want to close everything in the middle column and want to make the window in the right column expand to fill ⅔ of the screen. You'd have to expand it by hand, currently. |
Currently it supports only dragging to snap to two zones, but it shouldn't be too complicated to support a shortcut key as well, the major problem is to find an available key combination :) |
Yes. This is what I mean. Thanks for helping me explain it. I have used other window managers in the past and at least one of them had this functionality. It makes the Grid layout much more powerful. But it's not really easy to use if you have to use your mouse to manually resize. Thanks @crutkas for at least considering it. |
Method 2 would be allot faster and done in the same action you already need to do most of the time, and that is shift drag a window to pick a zone. Although when a window is already placed in a zone and you simply want to make it bigger and use the zone next to it method 1 would be preferable. Both are useful at different times. |
Good idea, but that only works for people who haven't changed that setting. I changed it. Every time I move a window it will snap to the zone. Will that setting carry over?
My main use case would be to quickly grow and shrink a window when I want it too. Preferably without having to use the mouse. Your suggestion is very good for when you're position windows at the beginning of a task, though. |
Hmm in order to quickly grow and shrink existing windows without a mouse would mean |
I think it should carry over. Meaning that in your case it would automatically snap when resizing. For free resizing you would have to hold shift just like you have to hold shift for free moving. This would be consistent. |
+1 for this useful feature. As for the kebindings: have you thought about prefix shortcuts a'la screen/tmux/moom? Press a prefix, zones appear, use cursor keys + shift to select which zones it should extend to. With a 4x4 grid, this would give you quick access to half screen both ways and 3:1 side/top/bottom panels. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 5 days. It will be closed if no further activity occurs within 5 days of this comment. |
This feature has the back-end already implemented (multiple zone selection using the mouse). |
Would love to see this happen in combination with Windows + Shift + Left/Right when Windows + Left/Right is already overwritten. Would be happy to provide a PR, this could take a while though as I neither know the codebase nor the language yet. |
@dbartholomae |
But isn't Win+Arrows also used? I would only overwrite Win+Shift+Arrows when Win+Arrows is also overwritten. |
@enricogior how do you activate it? |
@NSExceptional win + ctrl + alt + arrows I know is not a great combination but it was the only available at least until we will offer to choose a custom one. |
@NSExceptional This requirement may be removed in the future. |
Ohhh that's nice! While activating the zone picker, you can just hit win+ctrl+alt and drag it from the zone you were hovering over to other zones and make it stretch to fill any rectangle you want. As someone using the "hold a non primary mouse button while dragging the window" person, I would love to be able to just hold shift or some other key combo on top of that to begin selecting multiple zones, and simply release it if I change my mind. But this is fine until you get a custom shortcut option added as you said :) Thanks so much! This is a game changer! |
@NSExceptional |
Oh neat, awesome |
That looks great. Thanks for implementing this! |
Wiki updated with instructions: https://github.com/microsoft/PowerToys/wiki/FancyZones-Overview#snapping-a-window-to-two-or-more-zones |
Would you be open to a PR that allows to override the keys, e. g. to Windows+Shift+Arrows? |
@dbartholomae |
@roland-d magnet operates under a fixed style, we provide freedom of whatever you want. They are fundamentally different. |
Thank you very much for implementing this.
I'd very much appreciate this. Win + Shift would be perfect for me. Fun fact, PowerToys' keyboard manager cannot be used to remap Win + Shift to Ctrl +Win + Alt |
@W4RH4WK we don't allow modifier only shortcut remapping. I don't believe anyone has opened an ask (may be an open issue but i don't think there is) for that and we couldn't figure out a use case where someone would want this. If this is an ask, please file an issue. |
Yes. To be honest, I'm not sure if I will be able to do it, but for me the current keyboard shortcuts are more or less useless as pressing 4 keys is really unergonomical for task I do so often, so I still use the mouse, and I would be willing to dive a bit into the repo to see what I can do about it. |
@dbartholomae |
Summary of the new feature/enhancement
using a hotkey + arrow combination for the direction, it should be possible to make a window grow or shrink
When you want to grow a window that you have snapped to a smaller zone, and you want to make it temporarily larger, you have to manually make it longer or wider. It would be easier if you could use a key+arrow combo to grow the window with the zone the arrow points to.
Of course, this should be restricted to zones that combine to rectangles.
I don't know if this matches your vision of the product, but this is what I miss in the current version. Or maybe this functionality already exists and I have missed it.
The text was updated successfully, but these errors were encountered: