microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.26k stars 6.54k forks source link

[FancyZones] Map keyboard shortcuts to zones directly to zone windows quicker #492

Open kraoli opened 5 years ago

kraoli commented 5 years ago

I want to hit a user definable shortcut and the focused window should resize to the zone which is mapped to this shortcut .

I would map some keys e.g. on the numpad to my e.g. 4 zones. Now I can just press one of these keys and my windows is resized to the chosen zone.

Cycling with WIN + arrow is nice, but just hitting a key is a lot faster!

indierawk2k2 commented 5 years ago

Seems like a good suggestion for a general purpose shortcut key manager (which is a PT utility on the backlog).

bizerk44 commented 4 years ago

+1 to this. This is precisely how I would want use it. This allows me to hook this up to tools like Dragon Naturally Speaking / Windows Voice Recognition so it's voice enabled. Thanks to the team for working on a window manager! This is great for large monitors.

mac-tron commented 4 years ago

+1 to this. I would also like to use hotkeys to snap windows to the specified FancyZones rather than iterate through using Win + arrow.

natesubra commented 4 years ago

I would love to see this, I've cobbled together various Autohotkey solutions and being able to nix them and having this capability in FancyZones would be fantastic!

eliahreimers commented 4 years ago

+1 to this :-)

Jerph commented 4 years ago

Two additional thoughts on this feature, both coming from gTile:

  1. Allow keyboard shortcuts to go to a Zone in any Layout
  2. Allow one keyboard shortcut to be assigned to multiple Layout/Zones, which would cycle through them

The gTile shortcut interface is pretty clunky, and it limits you to one layout grid per shortcut. FancyZones could have more powerful separate layouts that don't adhere to X-by-Y grids, and a nice UI for setting the shortcuts would be possible.

Cycling through multiple zones is important to me because as a developer on a laptop without a numpad, I have very few unused shortcuts available. With gTile I use a modifier and just 3 keys (j, k, and l) to cycle windows in different priority grids as for my 4k monitor and laptop screen.

MaxR0SS commented 4 years ago

+1 - this could even be mapped through the PT Keyboard Manager?

igpit commented 3 years ago

+1 for this feature

soticoker commented 3 years ago

I would love to see this, I've cobbled together various Autohotkey solutions and being able to nix them and having this capability in FancyZones would be fantastic!

Same here 👍

bwanaaa commented 3 years ago

;) +1 Need this. Maybe presswing a key combo (like win z) brings up the zones then you hit a number and the window goes to the numbered zone.

Has a vim-like feel

bbhenry commented 3 years ago

This will be super helpful to have. Pretty please!!!

Foxeronie commented 3 years ago

+1 Would love to see this feature <3

tmuka commented 3 years ago

Would love to see keybinding support to move current window to any zone. This would replace my longtime favorite GridMove for window position management on my 4k 40" monitor. With that setup I would use win+[1-9] to quickly snap a window to any of my locations.

patosar commented 3 years ago

This feature would be the reason to stop using bloated software made by others.

light-foot commented 3 years ago

+1 I have no idea why this functionality doesn't exist. To me it makes no sense to not have this baked in from the start.

jordigarcl commented 2 years ago

+1 this would enable same functionality as macOs magnet/spectacle app

troybrave commented 2 years ago

+100

Magnet does this for mac and its incredibly more efficient. Team, PLEASE hear us on this. Its been almost 3 years this this request was made.

JensVanhooydonck commented 2 years ago

+1 Using UltrawideWindows on KDE which is super fast to move windows around. Would love this on windows as well.

Mushhushshu commented 2 years ago

+1 I use a Stream Deck for productivity purposes, and being able to use keyboard shortcuts to snap windows to zones would make it far easier to launch and position or move a suite of applications with one button press (there are ways to achieve this with the deck already, but they are comparatively clunky).

quartermyle commented 2 years ago

+1 Moving to Windows after using Magnet on Mac. This would be a great feature addition.

karpach commented 2 years ago

+1 I have three monitors and this feature will be very helpful.

jsjoeio commented 2 years ago

Can y'all use the 👍🏼 instead of commenting "+1"? There are 23 of us subscribed to this issue and each time you comment we get a notification.

image

Thanks!

marco-coraggio commented 2 years ago

Another relevant use for this feature, is to combine this with Autohotkey (and automate). Namely, one can open x apps and place each of them in a specific place on the screen. This is like having a preset "control room" at the press of a button! (notably, this cannot be done with the current hotkeys that cycle between zones, because it depends on the current position)

karatektus commented 1 year ago

Well this is an old issue and simmilar things pop up from time to time. i just "discovered" (as in 'finally installed') fancyzones on my pc with an ultrawide and really like it so far. I was using divvy before and the only thing i am now missing are zone hotkeys. Not sure how viable it is as an replacement without it.

nmoagit commented 1 year ago

I am just curious how these boards work. There multiple duplicates of these threads and lots of people asking for the same thing. Does that actually have an impact on what is features are added or is it just a fun but pointless exercise.

Also, is this feature likely to be included?

NB. I am asking this unironically and not criticising in anyway.

Gavin-Whitesitt commented 1 year ago

This would be a massive boon for my productivity. Having a assignable hotkeys to snap the active window to the selected zone with win + 1 2 3 4 5 seems like the obvious choice. Hope this gets prioritized and shipped.

marco-coraggio commented 1 year ago

It's to be noted that this key combination is already assigned to starting apps pinned in the taskbar. However, there could be an option to overwrite the default behavior of the key combination with this one, or this new behavior could be activated by pressing win + shift + number. Honestly, it seems also pretty easy to implement, at least from an outside perspective. I hope this feature can be implemented soon: lots of people are wishing for it 🤞😊

xplatinum commented 1 year ago

Please move it up in the priority list it should be easy enough to implement. It's been 4 years...

lucfig commented 1 year ago

Now that numpad can be mapped separately from top number row, would be great to use numpad to Fancy zones or use the numpad as arrow keys, so we can keep both windows default win+up/down/left/right and use the corresponding numpad keys for Fancy zones.

Lucas Figueiró

Em sáb., 2 de set. de 2023 13:06, xplatinum @.***> escreveu:

Please move it up in the priority list it should be easy enough to implement. It's been 4 years...

— Reply to this email directly, view it on GitHub https://github.com/microsoft/PowerToys/issues/492#issuecomment-1703874744, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACNXST4MAQOQEDQXIO4CQWDXYNKO3ANCNFSM4I7GVLKA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

fthdgn commented 1 year ago

On Windows 11, Win + Z shortcut opens a popup window to snap a window to a specific location without using mouse.

For example, this key sequence, snaps the window to middle large area on my ultrawide screen. Win + Z 6 2

image image

On FancyZones, we already can assign a number to a custom layout. Zones on a layout also have numbers assigned them.

For example Win + Shift + Z shortcut can open a similiar FancyZones popup which lists numbered custom layouts. Clicking a number selects the layout, than clicking the second number snaps the window.

Jay-o-Way commented 1 year ago

@fthdgn Nice, thanks! I didn't know that! That looks like the best thing to copy/make for FZ.

bwanaaa commented 1 year ago

On Windows 11, Win + Z shortcut opens a popup window to snap a window to a specific location without using mouse.

For example, this key sequence, snaps the window to middle large area on my ultrawide screen. Win + Z 6 2

image image

On FancyZones, we already can assign a number to a custom layout. Zones on a layout also have numbers assigned them.

For example Win + Shift + Z shortcut can open a similiar FancyZones popup which lists numbered custom layouts. Clicking a number selects the layout, than clicking the second number snaps the window.

yes but i prefer windows 10. From the above comments it seems that moving a window requires two sets of keypresses and a mouse click 1)first keycombo brings up the layout menu 2)mouseclick selects the layout 3)number selects the zone

Is there a way to map a zone to a keycombo so it's one and done?

TrevorSquillario commented 1 year ago

I'm on Windows 11 and I have to click the layout. Pressing a number key after Win+Z doesn't do anything

fthdgn commented 1 year ago

@bwanaaa

Mouse clicks are optional. On my machine both numpads and numbers on the top row make the layout and zone selected automatically.

keyboard: WIN+Z keyboard: 1 keyboard: 1

and the windows is on the left half of the screen.

I don't know any key combination or settings that can do it directly.

@TrevorSquillario

When the popup is first opened, it shows numbers on layout. If you click empty spaces on the popup, numbers disappear and number keys stop working.

Does your popup shows numbers when it first opened?

Maybe it depends on the Windows 11 version. My current OS is Windows 11 Pro 22H2.

TrevorSquillario commented 1 year ago

No zone numbers on mine. Running PowerToys 0.74.1

image

image

image

Jay-o-Way commented 1 year ago

@TrevorSquillario

TrevorSquillario commented 1 year ago

@Jay-o-Way

Corporate laptop, not under my control :(

crnolan commented 1 year ago

Two additional thoughts on this feature, both coming from gTile:

1. **Allow keyboard shortcuts to go to a Zone in any Layout**

2. **Allow one keyboard shortcut to be assigned to multiple Layout/Zones, which would cycle through them**

The gTile shortcut interface is pretty clunky, and it limits you to one layout grid per shortcut. FancyZones could have more powerful separate layouts that don't adhere to X-by-Y grids, and a nice UI for setting the shortcuts would be possible.

Cycling through multiple zones is important to me because as a developer on a laptop without a numpad, I have very few unused shortcuts available. With gTile I use a modifier and just 3 keys (j, k, and l) to cycle windows in different priority grids as for my 4k monitor and laptop screen.

Just bumping this comment here, because I've been using gTile for years now and nothing else is nearly as efficient. Like @Jerph, I map sets of sizes to each of hotkey+j/k/l and each shortcut cycles through different sizes in the left/middle/right position on a monitor (i.e. press ctrl-win-j once, window is 1/4 maximised on the left, press it again it's 1/3). The closest I can get right now with FZ is to have an overlapping layout with all possible window locations, and cycle through them all with win-left/win-right.

KonRay commented 1 year ago

+1 for this to be implemented. I also use multiple monitors and desperately need this.

zachtytuslyles commented 12 months ago

+1 this is long overdue!

blankster commented 11 months ago

I had the same wish as all of you, and I was already in the process of writing my own script with AutoHotkey, but then I stumbled upon a great solution that has already been implemented. I see it as a proof of concept for how FancyZones could work: https://github.com/thesobercoder/polygon

ersan commented 11 months ago

Afer 4 years and no hope of this being worked on I gave up and bought MaxTo instead, which lets you make recipes to do this sort of thing.

GLADgames commented 10 months ago

Sad to see this still hasn't been implemented. I think, like ersan above, I will just end up purchasing MaxTo. Maybe one day FancyZones will catch up with the competition.

theskills101 commented 7 months ago

Also very dissapointed this isn't implemented. I'm trying every other solution at the moment because it seems like this topic isn't a priority on fancyzones :(. I need this desperately with my 49 inch ultrawide.

JEFF-LIU-me commented 7 months ago

Alternatives: buy 4 monitors... or get a Mac... or both! (Yes, I was desperate... "Windows" needs better windows mgmt.) Thanks for suggesting MaxTo and Polygon -- I'll try both.

...or maybe MSFT needs to start funding PowerToys ;)

NeuronHuskie commented 6 months ago

I wrote this AutoHotkey script which I use to move my windows to specific 'zones'.

rvega commented 6 months ago

+1

ilude commented 6 months ago

Note to Project Maintainers (ie. A kind suggestion): as @Catriks pointed out here it's great the the "bot" shows similar issues. But it does not suggest the issue (lowest numbered open issue???) where this feature, most likely, is being tracked!

Beyond the primary ability of knowing the status of the feature request, this also allow for review by users wanting this feature to see if anyone has an alternate work around they have been using to get something close to the requested functionality. Which I will now being toing on this issue thread.

So, Yes I obviously found this issue eventually but, and I'm just suggesting here, it would speed up things greatly for all involved, IMHO, to have the bot be "more" helpful. a

If this feature were to be added to the "bot" it should also retro-actively review all tickets to make sure the existing bot messages are either updated (if that is possible on a closed issue, I'm not sure) or an additional message should be injected with the message "This feature request being tracked here:..." . Because there are ALOT of closed issues for this feature in particular!

Thanks for your time and effort all! (And yes I would love this feature!)

CCProHu commented 3 months ago

+1

GaborTorma commented 3 months ago

+1