-
Notifications
You must be signed in to change notification settings - Fork 0
/
AHKCursor.ahk
52 lines (42 loc) · 954 Bytes
/
AHKCursor.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
46
47
48
49
50
51
;; Shortcuts for cursor movement/text edit
;; as well as something else
;; ISSUES:
;; 1. RAlt+wsad sometimes cannot move focus among controls in a dialog
;; 2. RAlt+ws don't work in onenote
;; arrows and home/end
*>!w::Send {Up}
*>!s::Send {Down}
*>!a::Send {Left}
*>!d::Send {Right}
; Note: different behaviour for arrow keys and normal chars
>![::Send {Home}
>!'::Send {End}
;; manipulate window -- max/min/left/right
#>!w::Send #{Up}
#>!s::Send #{Down}
#>!a::Send #{Left}
#>!d::Send #{Right}
;; ctrl + arrows
^>!w::Send ^{Up}
^>!s::Send ^{Down}
^>!a::Send ^{Left}
^>!d::Send ^{Right}
;; single character selection
+>!w::Send +{Up}
+>!s::Send +{Down}
+>!a::Send +{Left}
+>!d::Send +{Right}
;; select til home/end
+>![::Send +{Home}
+>!'::Send +{End}
;; whole word selection
^+>!w::Send ^+{Up}
^+>!s::Send ^+{Down}
^+>!a::Send ^+{Left}
^+>!d::Send ^+{Right}
;; misc
>!/::Send {Del}
>!-::Send {F11}
>!=::Send {F12}
>!q::Send {Esc}
>!f::Send #q