Last active
June 22, 2016 08:07
-
-
Save codeandcats/b8938ee84abdeba15ec2aca39d3f6427 to your computer and use it in GitHub Desktop.
AutoHotKey file to simulate common OSX shortcuts in Windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Force AHK to replace already running instance of this script with newer version if script is opened again while already running | |
#SingleInstance force | |
; --------------- Windows --------------- | |
; Win+Tab = Alt+Tab | |
<#Tab::AltTab | |
>#Tab::AltTab | |
; --------------- Navigation --------------- | |
; WinKey+Up = Control+Home | |
#Up:: | |
send, ^{Home} | |
Return | |
; WinKey+Down = Control+End | |
#Down:: | |
send, ^{End} | |
Return | |
; WinKey+Left = Home | |
#Left:: | |
send, {Home} | |
Return | |
; WinKey+Right = End | |
#Right:: | |
send, {End} | |
Return | |
; Alt+Left = Control+Left | |
!Left:: | |
send, ^{Left} | |
Return | |
; Alt+Right = Control+Right | |
!Right:: | |
send, ^{Right} | |
Return | |
; --------------- Selection --------------- | |
; Shift+WinKey+Up = Shift+Control+Home | |
+#Up:: | |
send, {Shift Down}^{Home}{Shift Up} | |
Return | |
; Shift+WinKey+Down = Shift+Control+End | |
+#Down:: | |
send, {Shift Down}^{End}{Shift Up} | |
Return | |
; Shift+WinKey+Left = Shift+Home | |
+#Left:: | |
send, {Shift Down}{Home}{Shift Up} | |
Return | |
; Shift+WinKey+Right = Shift+End | |
+#Right:: | |
send, {Shift Down}{End}{Shift Up} | |
Return | |
; Shift+Alt+Left = Shift+Control+Left | |
+!Left:: | |
send, {Shift Down}^{Left}{Shift Up} | |
Return | |
; Shift+Alt+Right = Shift+Control+Right | |
+!Right:: | |
send, {Shift Down}^{Right}{Shift Up} | |
Return | |
; Win+a = Control+a (Select All) | |
#a:: | |
send, ^a | |
Return | |
; --------------- Editor --------------- | |
; WinKey+c = Copy | |
#c:: | |
send, ^c | |
Return | |
; WinKey+x = Cut | |
#x:: | |
send, ^x | |
Return | |
; WinKey+v = Paste | |
#v:: | |
send, ^v | |
Return | |
; WinKey+z = Undo | |
#z:: | |
send, ^z | |
Return | |
; Alt+Backspace = Backspace one word | |
!Backspace:: | |
send, ^{Backspace} | |
Return | |
; WinKey+Backspace = Mega Delete (select everything on line before caret and delete it) | |
#Backspace:: | |
send, {Shift Down}{Home}{Shift Up}{Backspace} | |
Return | |
; Find | |
#f:: | |
send, ^f | |
Return | |
; Save | |
#s:: | |
send, ^s | |
Return | |
; --------------- IDE Shortcuts --------------- | |
; Method List | |
!Space:: | |
send, ^{Space} | |
Return | |
; Parameter Hint | |
+!Space:: | |
send, +^{Space} | |
Return | |
; Open File | |
#p:: | |
send, ^p | |
Return | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment