kvakulo / Switcheroo

The humble incremental-search task switcher for Windows
www.switcheroo.io
GNU General Public License v3.0
789 stars 122 forks source link

Activate Switcharoo by commandline parameter #44

Open johanborg opened 9 years ago

johanborg commented 9 years ago

It would be nice if you could activate Switcharoo (like ALT+SPC) by calling executable with a command line parameter.

Like: c:>switcharoo.exe -activate << Would bring up Switcharoo "window" if already started.

My main use would be binding it to a spare mouse button, but likely useful in other ways as well.

Best regards, Johan

kvakulo commented 9 years ago

Hi Johan,

That's a great idea!

I think that would be a good start on some sort of command line interface to Switcheroo.

Afterwards maybe other command line parameters could be added as well like, e.g.:

If you (or another person reading this) want to implement this, then please let me know. I would be happy to receive a pull request for this feature. Otherwise I'll try to get to it when I have finished some of the other open issues.

@johanborg in the meantime you might be able to AutoHotkey (http://www.autohotkey.com/) to send Alt+Space when clicking your spare mouse button. A rule could be something like: MButton ::Send, !{Space} for turning a middle mouse button click into Alt+Space, and thus making the Switcheroo window open. See this page for more mouse button choices: https://www.autohotkey.com/docs/KeyList.htm.

/ Regin