-
Notifications
You must be signed in to change notification settings - Fork 4
/
home_row.ahk
45 lines (38 loc) · 815 Bytes
/
home_row.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
navigation := 0
$d:: navigation := A_TickCount
$d Up::
;ToolTip % A_PriorKey
if (A_PriorKey = "d" && (A_TickCount - navigation) < 500)
{
SendInput {Blind}d
}
navigation := 0
return
Action(action)
{
SendInput % "{Blind}{" action "}"
}
#if navigation
h::Action("Left")
j::Action("Down")
k::Action("Up")
l::Action("Right")
u::Action("PgUp")
n::Action("PgDn")
p::SendInput {Shift Down}{Insert}{Shift Up}
$Enter::SendInput {Ctrl Down}{Enter}{Ctrl Up}
#if
semicolon := 0
$;::
semicolon := A_TickCount
SendInput {Blind}{LCtrl Down}
return
$; UP::
SendInput {Blind}{LCtrl Up}
;ToolTip % A_PriorKey
if (A_PriorKey = ";" && (A_TickCount - semicolon) < 500)
{
SendInput {Blind};
}
semicolon := 0
return