Skip to content

Instantly share code, notes, and snippets.

@elado
Created September 4, 2020 05:47
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 elado/2594aed0adb29098fcc12cc42f13cab1 to your computer and use it in GitHub Desktop.
Save elado/2594aed0adb29098fcc12cc42f13cab1 to your computer and use it in GitHub Desktop.
macOS Keyboard Binding on Windows With AuthoHotKey
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; CMD+Backspace -> delete to start of line
#BS::Send {LShift down}{Home}{LShift Up}{Del}
; Alt+Backspace -> delete to start of word
!BS::Send {LShift down}{LCtrl down}{Left}{LShift Up}{Lctrl up}{Del}
; Alt+Del -> delete to end of word
!Delete::Send {LShift down}{LCtrl down}{Right}{LShift Up}{Lctrl up}{Del}
#Up::Send {Lctrl down}{Home}{Lctrl up}
#Down::Send {Lctrl down}{End}{Lctrl up}
#Left::Send {Home}
#Right::Send {End}
!Up::Send {Home}
!Down::Send {End}
!Left::^Left
!Right::^Right
CapsLock::LWin
<#Tab::AltTab
; <#Tab::ShiftAltTab
#w::Send {CtrlDown}{w}{CtrlUp}
#q::Send {AltDown}{F4}{AltUp}
#a::Send ^a
#b::Send ^b
#c::Send ^c
#d::Send ^d
#e::Send ^e
#f::Send ^f
#g::Send ^g
#h::Send ^h
#i::Send ^i
#j::Send ^j
#k::Send ^k
#l::Send ^l
#m::Send ^m
#n::Send ^n
#o::Send ^o
#p::Send ^p
#r::Send ^r
#s::Send ^s
#t::Send ^t
#u::Send ^u
#v::Send ^v
#x::Send ^x
#y::Send ^y
#z::Send ^z
#/::Send ^/
#'::Send ^'
#[::Send ^[
#]::Send ^]
; win plus/minus for zoom
#=::Send {CtrlDown}{+}{CtrlDown}
#-::Send ^-
@jetwhisperer
Copy link

#=::Send {CtrlDown}{+}{CtrlDown}

I think you mean #=::Send {CtrlDown}{+}{CtrlUp}

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