Skip to content

Instantly share code, notes, and snippets.

@robert-moore
Created March 10, 2022 12:11
Show Gist options
  • Save robert-moore/4bc6e87a1aec4b9d208430e59d1528d5 to your computer and use it in GitHub Desktop.
Save robert-moore/4bc6e87a1aec4b9d208430e59d1528d5 to your computer and use it in GitHub Desktop.
Autohotkey Mac Keyboard
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#SingleInstance Force
; #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.
!Right::
Send, {End}
return
!Left::
Send, {Home}
return
!+Right::
Send, +{End}
return
!+Left::
Send, +{Home}
return
; Select word next
#+Right::Send, ^+{Right}
; Move word next
#Right::Send, ^{Right}
; Select word next
#+Left::Send, ^+{Left}
; Move word next
#Left::Send, ^{Left}
; Move line down
#Down::Send, !{Down}
; Move line up
#Up::Send, !{Up}
; Make Ctrl + S work with cmd (windows) key
!s::Send, ^s
; Make Ctrl + S work with cmd (windows) key
!+s::Send, ^+s
; Selecting
!a::Send, ^a
; Selecting
!l::Send, ^l
; Next selection
!d::Send, ^d
; Copying
!c::Send, ^c
; Cut
!x::Send, ^x
; Pasting
!v::Send, ^v
; Copying
!+c::Send, ^+c
; Pasting
!+v::Send, ^+v
; Bold
!b::Send, ^b
; Italic
!i::Send, ^i
; Bold
!+b::Send, ^+b
; Italic
!+i::Send, ^+i
; Printing
!p::Send, ^p
; Opening
!o::Send ^o
; Opening
!+o::Send ^+o
; Finding
!f::Send ^f
; Finding
!+f::Send ^+f
; Replace
!h::Send ^h
; Replace
!+h::Send ^+h
; Undo
!z::Send ^z
; Redo
!y::Send ^y
; New tab
!t::Send ^t
; close tab
!w::Send ^w
; new window
!n::Send ^n
; new window
!+n::Send ^+n
; refresh
!r::Send ^r
; refresh
!+r::Send ^+r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment