VD.ahk icon indicating copy to clipboard operation
VD.ahk copied to clipboard

How to cycle back to first desktop when at the last?

Open gaberiel44 opened this issue 2 years ago • 4 comments

Hello,

I have been using this tool and thus far I really like it, thanks for making it!

One thing that is proving to be a pain.

When moving active window to previous\next desktops. Its possible to cycle back to first, if at the last desktop.

The program is smart enough to recognise that when I am at the last desktop it will move the window to the first desktop.

Is it possible to do this when switching virtual desktops? so that if I am at the last desktop, invoking next desktop will go to the first desktop.

Looking at the examples provided I was not able to find this functionality. Thanks!

gaberiel44 avatar Jan 18 '23 12:01 gaberiel44

It wasn't possible, I thought only MoveWindowToRelativeDesktopNum() was needed since only that was specifically requested without requesting both MoveWindowToRelativeDesktopNum() and gotoRelativeDesktopNum()

FuPeiJiang avatar Jan 18 '23 16:01 FuPeiJiang

I see, well can I make request for this feature I am asking about then? I sorely need it please consider it. Thanks.

gaberiel44 avatar Jan 18 '23 19:01 gaberiel44

FuPeiJiang added a commit that referenced this issue 4 hours ago

if you see this above my message, it means I added it (I guess it's an indirect way of saying: I added it), you just need to update/redownload

I also added this to README.md:

; wrapping / cycle back to first desktop when at the last
^#left::VD.goToRelativeDesktopNum(-1)
^#right::VD.goToRelativeDesktopNum(+1)

FuPeiJiang avatar Jan 18 '23 20:01 FuPeiJiang

Amazing! Thank you so much for implementing this request. Its sooo much better now!

gaberiel44 avatar Jan 20 '23 01:01 gaberiel44