Created
March 20, 2014 03:00
-
-
Save old9/9656335 to your computer and use it in GitHub Desktop.
AHK script to tune the Ctrl+Tab behavior in Sublime Text
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
SetTitleMatchMode RegEx | |
#ifWinActive, .* - Sublime Text$ | |
*^tab up:: | |
SetTimer, WaitForCtrlUp, 20 | |
return | |
#ifWinActive | |
WaitForCtrlUp: | |
if(GetKeyState("Ctrl")){ | |
if(GetKeyState("shift")){ | |
send ^{pgup} | |
} | |
else | |
{ | |
send ^{pgdn} | |
} | |
} | |
Else | |
{ | |
send ^{tab} | |
} | |
SetTimer, WaitForCtrlUp, Off | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
end result:
Ctrl + Tab : next_view_in_stack
Ctrl(holding) + Tab: next_view
Ctrl(holding) + Shift + Tab: prev_view