Last active
January 17, 2017 04:15
-
-
Save 2no/54b0a0eea1472dd1144d to your computer and use it in GitHub Desktop.
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
| #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
| SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
| SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
| SetTitleMatchMode,2 | |
| #InstallKeybdHook | |
| #UseHook | |
| #Space::IME_SET(!IME_GET()) | |
| #Enter:: return ; Disable Windows Narrator | |
| ; -------------------------------------------------------------- | |
| ; OS X system shortcuts | |
| ; -------------------------------------------------------------- | |
| ; Make Ctrl + S work with cmd (windows) key | |
| #s::^s | |
| ; Selecting | |
| #a::^a | |
| ; Copying | |
| #c::^c | |
| ; Pasting | |
| #v::^v | |
| ; Cutting | |
| #x::^x | |
| ; Opening | |
| #o::^o | |
| ; Finding | |
| #f::Send ^f | |
| ; Undo | |
| #z::^z | |
| ; Redo | |
| #y::^y | |
| ; New tab | |
| #t::^t | |
| ; close tab | |
| #w::^w | |
| ; Close windows (cmd + q to Alt + F4) | |
| #q::Send !{F4} | |
| ; Remap Windows + Tab to Alt + Tab. | |
| Lwin & Tab::AltTab | |
| ; minimize windows | |
| #m::WinMinimize,a | |
| ; -------------------------------------------------------------- | |
| ; Application specific | |
| ; -------------------------------------------------------------- | |
| ; Google Chrome | |
| #IfWinActive, ahk_class Chrome_WidgetWin_1 | |
| ; Show Web Developer Tools with cmd + alt + i | |
| #!i::Send {F12} | |
| ; Show source code with cmd + alt + u | |
| #!u::Send ^u | |
| #IfWinActive | |
| ; CMD | |
| #If WinActive("cmd.exe") | |
| ^u::Send {ESC} | |
| ^l::Send {ESC}cls{ENTER} | |
| ^w:: | |
| Send ^+{Left} | |
| Loop, 500 { | |
| Send {Del} | |
| } | |
| Return | |
| #If | |
| ; CMD/PowerShell/Console2(z) | |
| #If WinActive("ahk_class ConsoleWindowClass") || WinActive("ahk_class Console_2_Main") || WinActive("ahk_class PuTTY") | |
| ^a::Send {HOME} | |
| ^p::Send {Up} | |
| ^n::Send {Down} | |
| ^k::Send {F4} | |
| ^f::Send {right} | |
| ^b::Send {left} | |
| ^w::Send ^w | |
| ^u::Send ^u | |
| #If | |
| #If WinActive("ahk_class mintty") | |
| ^a::Send {HOME} | |
| ^p::Send {Up} | |
| ^n::Send {Down} | |
| ^k::Send {F4} | |
| ^w::Send ^w | |
| ^u::Send ^u | |
| #If | |
| #if !WinActive("ahk_class SunAwtFrame") && !WinActive("ahk_class VirtualConsoleClass") | |
| ^h::Send {Backspace} | |
| ^m::Send {Enter} | |
| ^u::Send +{Home}{Del} | |
| ^e::Send {End} | |
| ^w::Send ^+{Left}{Del} | |
| ^[::Send {ESC} | |
| #if |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment