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

[FZ] - hotkey to switch focus between zones #15067

Open
mgpinf opened this issue Dec 18, 2021 · 27 comments
Open

[FZ] - hotkey to switch focus between zones #15067

mgpinf opened this issue Dec 18, 2021 · 27 comments
Labels
FancyZones-Hotkeys Issue around shortcut keys in FancyZones Idea-Enhancement New feature or request on an existing product Product-FancyZones Refers to the FancyZones PowerToy

Comments

@mgpinf
Copy link

mgpinf commented Dec 18, 2021

Description of the new feature / enhancement

Powertoys fancyzones shortcut or hotkey to switch between zones. Just like shortcuts to new feature of switching to next window in current zone, adding shortcuts to this would be nice :)

Scenario when this would be used?

Makes it convenient to switch between zones, rather than having to use alt+tab

Supporting information

No response

@mgpinf mgpinf added the Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams label Dec 18, 2021
@Jay-o-Way
Copy link
Collaborator

What version are you using? 'cause this is already a thing. You can find it in the settings for individual (custom) zones.

@Jay-o-Way Jay-o-Way added the FancyZones-Hotkeys Issue around shortcut keys in FancyZones label Dec 18, 2021
@mgpinf
Copy link
Author

mgpinf commented Dec 19, 2021 via email

@mgpinf
Copy link
Author

mgpinf commented Dec 19, 2021

I don't mean switching between layouts or opening the layout editor. I mean switching between zones, suppose a layout has 2 zones, I need a shortcut or hotkey to switch between 2 zones in the layout

@Jay-o-Way
Copy link
Collaborator

Jay-o-Way commented Dec 19, 2021

Oh sorry, i misread.

@mgpinf
Copy link
Author

mgpinf commented Dec 19, 2021 via email

@ianelletson
Copy link

ianelletson commented Dec 19, 2021

Ditto; this would be incredible and bring this ever so closer to a twm.

Specifically: the ability to switch the focused window based on the zone
Further: the ability to exchange two windows

@Jay-o-Way
Copy link
Collaborator

I'm probably just very sceptic, but technically you can't really focus on a zone, just on a window. So, you mean you want a hotkey to focus to a different window in a specific zone? I'd circle back to Alt+Tab.

@mgpinf
Copy link
Author

mgpinf commented Dec 20, 2021 via email

@mgpinf mgpinf closed this as completed Dec 20, 2021
@mgpinf mgpinf reopened this Dec 20, 2021
@mgpinf
Copy link
Author

mgpinf commented Dec 20, 2021

image
Suppose, there are 2 zones, and I want to switch to zone 2 (currently in zone 1), my suggestion is that as long as there is a window in that zone, switch focus to topmost (the one that is displayed) in the new zone)

So, to switch to topmost window on zone2 from zone1, some combination of modifier keys with 2, should focus window on zone 2, likewise for zone1, if no window exists in that particular zone, focus should remain in the currently focused zone

@ninja542
Copy link

I feel like this is a really good idea, because alt tab to change window focus is kind of finicky when you have more than two windows. I was trying out a layout with three windows and sometimes if I want to switch between my current window and the window that I used before the window I used last time I would have to alt tab two times.

This is too complicated to remember if the window I want to use was the window I used last time or the window even older so I have to alt tab and make sure that I am focusing on the correct window. I think this would simplify things especially for layouts with more than two zones.

I remedied my desire for quick switching by changing my layout to a 2 window layout and just use win pgdn/pgup when I need to swap between window A and window B in my left zone

@crutkas crutkas changed the title Powertoys fancyzones shortcut or hotkey to switch between zones [FZ] - hotkey to switch focus between zones Dec 29, 2021
@crutkas crutkas added Idea-Enhancement New feature or request on an existing product and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Dec 29, 2021
@crutkas crutkas added the Product-FancyZones Refers to the FancyZones PowerToy label Jan 5, 2022
@crutkas
Copy link
Member

crutkas commented Mar 21, 2022

/dup #492

@ghost
Copy link

ghost commented Mar 21, 2022

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost ghost closed this as completed Mar 21, 2022
@ghost ghost added the Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. label Mar 21, 2022
@crutkas
Copy link
Member

crutkas commented Mar 21, 2022

actually, i misread this, that was moving window to zone, this is gaining focus

@crutkas crutkas reopened this Mar 21, 2022
@ghost
Copy link

ghost commented Mar 22, 2022

This issue has been marked as duplicate and has not had any activity for 1 day. It will be closed for housekeeping purposes.

@ghost ghost closed this as completed Mar 22, 2022
@franky920920 franky920920 reopened this Mar 22, 2022
@franky920920 franky920920 removed the Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. label Mar 22, 2022
@ParshavKothary
Copy link

This seems like it would be very helpful for users who have many zones/windows/monitors. I would love to contribute if it's not being worked on already

@GOATS2K
Copy link

GOATS2K commented Jun 30, 2022

This sounds useful, I'll dig around and see how feasible this is to implement.

@cloudnothings
Copy link

This sounds extremely useful.
Here's my current use case:
3 zones evenly stacked vertically on a vertical monitor.
While on zone1 I can already cycle between the windows in zone1.
I can also move the focused window from zone1 to other zones with the windows + arrow keys.

It would be great if rather than using alt + tab to cycle through my many windows system wide, I can use a shortcut to focus on the topmost window of the next zone, in this case I would simply cycle to zone 2, then to zone 3's topmost window, and then back to zone 1's topmost window.

Also, it would be cool if you can swap windows between zones.
Example:
Zones 1, 2, 3 all have a window on top.
From Zone 1, I would use a shortcut like Win + Shift + direction arrow to evaluate a swap from the topmost window of Zone 2 (if I pressed down) or zone 3 (if I pressed up). Just like alt tab, the change would only actually complete once you let go of Windows + Shift.

@KiLLeRRaT
Copy link

Check out GlazeWM, it's a very cool app and works very well for me.

https://github.com/lars-berger/GlazeWM

@sylph520
Copy link

sylph520 commented Jun 4, 2023

Yep. +1 for this feature. It make the fancyzones more useful, and avoid distracting from using mouse to switch focus between programs within different zones in one layout, hope this issuse can be pushed forward more quickly. Many thanks!

@OreoLamp
Copy link

+1 for this issue, would be incredibly useful

@nicolaiunrein
Copy link

I am willing to put some hours into this.
The absence of having a working TWM on windows is the biggest blocker for me switching entirely from Linux to Windows as my base OS running linux inside WSL and ditch dual boot altogether. And Fancy Zones feels the most native from what I have tried so far.

@TheColorman
Copy link

To add to this, in addition to having a shortcut for focusing each zone (e.g. using number keys), a way to focus zones based on relative position using arrow keys much like the current option for the Relative position Snap override would be very useful.

@cprusprus
Copy link

Implemented basic support for this in a fork:
cprusprus@94fbca4

See commit comments for what works, what's still TODO, and building. I'm not sure I have time to get this PR ready but if someone wants to collab on that to submit the feature back let me know.

Also, #25831 is another dup of this thread.

@blm768
Copy link

blm768 commented Feb 21, 2024

#16052 also seems related.

@marc-hg
Copy link

marc-hg commented Aug 15, 2024

very interested in this

@urosevicvuk
Copy link

+1

@aervxa
Copy link

aervxa commented Jan 5, 2025

+1 (it's been more than 3 years 🙏)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FancyZones-Hotkeys Issue around shortcut keys in FancyZones Idea-Enhancement New feature or request on an existing product Product-FancyZones Refers to the FancyZones PowerToy
Projects
Status: No status
Development

No branches or pull requests