pmb6tz / windows-desktop-switcher

An AutoHotKey script for Windows that lets a user change virtual desktops by pressing CapsLock + <num>.
MIT License
1.23k stars 230 forks source link

Add ability to move windows to other desktops #28

Closed Elijas closed 5 years ago

Elijas commented 5 years ago

Features added:

  1. Moving of windows to other desktops (feel free to change hotkeys to ones you prefer without my input)

Other code changes made:

  1. Moving of user configuration to the top. All text editors will open the script at the top, why force our users scroll to the bottom :)
  2. Don't do actions if switching to the desktop we're already in. IMO, it's more robust this way (otherwise we will focus/defocus windows needlessly)
  3. Rearranged switchDesktopByNumber(targetDesktop) and its sibling functions to make them more palatable (previously, the same comment was repeated multiple times. Also made mapDesktopsFromRegistry() relationship to the global variables clearer)
Elijas commented 5 years ago

@pmb6tz Done