Skip to content

Instantly share code, notes, and snippets.

@zsimic
Last active December 13, 2020 03:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zsimic/03f46ea830daa32d690565e3367f4179 to your computer and use it in GitHub Desktop.
Save zsimic/03f46ea830daa32d690565e3367f4179 to your computer and use it in GitHub Desktop.
; -- Remap Alt -> Ctrl on Windows (to behave like ⌘CMD+key on mac)
; Via https://www.autohotkey.com/docs/misc/Remap.htm
; Alt+key on Windows is just a general shortcut to application menu...
; I find that undesirable/annoying, and prefer to simply have all Alt+key combinations be CTRL+key instead
; Benefits:
; - CMD is much more natural to hit (less finger stretching to reach CTRL)
; - no UI menu distractions while using keyboard
; - makes it easy to configure many dev tools in the same way on mac/Windows
;#InstallKeybdHook
#SingleInstance ignore
SetCapsLockState, AlwaysOff ; disable caps lock entirely
CapsLock::return
!z::Send ^z ; undo
!x::Send ^x ; cut
!c::Send ^c ; copy
!v::Send ^v ; paste
!b::Send ^b
!n::Send ^n ; new document
!m::WinMinimize, a
!a::Send ^a ; select all
!s::Send ^s ; save
!d::Send ^d
!f::Send ^f ; find
!g::Send ^g ; go to
!h::Send ^h
!j::Send ^j
!k::Send ^k
!l::Send ^l
!q::Send !{F4} ; Close window
!w::Send ^w ; close window
!e::Send ^e ; find word at caret
!r::Send ^r ; go to symbol
!t::Send ^t ; new tab
!y::Send ^y
!u::Send ^u
!i::Send ^i
!o::Send ^o ; open document
!p::Send ^p
!1::Send ^1
!2::Send ^2
!3::Send ^3
!4::Send ^4
!5::Send ^5
!6::Send ^6
!7::Send ^7
!8::Send ^8
!9::Send ^9
!0::Send ^0
!-::Send ^-
!SC00D::Send ^{SC00D} ; '=' key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment