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

[Feature request] Jump to the previous VD #16

Open
llinfeng opened this issue Jul 16, 2022 · 3 comments
Open

[Feature request] Jump to the previous VD #16

llinfeng opened this issue Jul 16, 2022 · 3 comments

Comments

@llinfeng
Copy link

Now that we can jump to an arbitrary VD by number, it would help to have a way to jump back to where we came from :) Thx!

@Konfekt
Copy link

Konfekt commented Apr 11, 2023

The function to switch to the last active desktop could perhaps be implement similar to this and that commit...

@FuPeiJiang
Copy link
Owner

@Konfekt
what's the use case ? do you want alt+tab behavior but for virtual desktop ?
or do you want to store it in a history ? (instead of storing only the last active desktop)

 #Include %A_LineFile%\..\..\VD.ahk 
 VD.RegisterDesktopNotifications() 
 VD.CurrentVirtualDesktopChanged:=Func("CurrentVirtualDesktopChanged") 
 CurrentVirtualDesktopChanged(desktopNum_Old, desktopNum_New) { 
     ToolTip % desktopNum_Old ", " desktopNum_New 
 } 

I will implement it using this code

then you will just do:
VD.goToDesktopNum(VD.lastDesktopNum)

@Konfekt
Copy link

Konfekt commented May 4, 2023

Exactly, Single Alt+Tab for Desktops. Thank you very much, storing the last desktop in a variable on a desktop change and accessing it by a function bound to a keyboard shortcut, say Alt+Tab, achieves this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants