Skip to content

Instantly share code, notes, and snippets.

@old9
Created March 20, 2014 03:00
Show Gist options
  • Save old9/9656335 to your computer and use it in GitHub Desktop.
Save old9/9656335 to your computer and use it in GitHub Desktop.
AHK script to tune the Ctrl+Tab behavior in Sublime Text
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
@old9
Copy link
Author

old9 commented Mar 20, 2014

end result:
Ctrl + Tab : next_view_in_stack
Ctrl(holding) + Tab: next_view
Ctrl(holding) + Shift + Tab: prev_view

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment