microsoft / PowerToys

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

[FancyZones] Change "Tab Index" of zones #562

Open wdunn001 opened 5 years ago

wdunn001 commented 5 years ago

Summary of the new feature/enhancement

as a user I would like to redefine index of each fancy zone so that they can set the order in which they switch using windows + left and right arrow hotkey.

Proposed technical implementation details (optional)

Add a combo-box to CanvasZone.xaml that contains an enumeration of the current index length. OnChange execute a swapIndex() method in the CanvasLayoutModel. swapIndex() will trade positions of each zone in the Zones Array portion of the CanvasLayoutModel.

totkeks commented 5 years ago

I just had a similar idea, because I was confused that win + arrow down didn't move my window down in the row view, but instead arrow right needs to be used. My proposal would be to have the cycling more relative to the visual representation (2d grid) instead of the technical representation (1d array).

So the keys would do the follow:

right arrow - move to closest zone in the next column
left arrow - move to closest zone in the previous column
up arrow - move to closest zone in the previous row
down arrow - move to closest zone in the next row

What do you think about this?

JEFF-LIU-me commented 7 months ago

Would still be nice to have--otherwise, I have to effectively re-make 13 zones every time I want to tweak my "fan" layout.

I tried "move windows based on relative position" (instead of zone index), but that disables maximize (win+up) and restore/minimize (win+dn)