Computer Science Canada Git on Windows Scripts [Python+AHK] |
Author: | Zren [ Mon Jul 11, 2011 7:17 pm ] | ||||
Post subject: | Git on Windows Scripts [Python+AHK] | ||||
Pushing stuff to git is fairly annoying. At least for me. Compared to Ctrl+s, it's painful. Most of the time I don't even have the git shell open, or I have to use the cd to locate the file. Leaving the shell open is fine, but break workflow as you have to change windows. Anyways, I checked out the link that opened the shell, and found out an argument for sh.exe that'll execute code. From there, I moved it to a python script. It probably could all go in AutoHotKey (which I use to speed things up even more), but I'm nowhere near fluent in it. gitUpdate.py /d/ = D:\ drive for those wondering.
AutoHotKey Script (gitBind.ahk) I bind the CapsLock key as it's easily the most useless key ever. It's also big.
Basically your workflow is now: <CapsLock> *New window takes focus* Enter update message <Enter> *Window disappears* Back to coding. |