-
Notifications
You must be signed in to change notification settings - Fork 1
/
skhdrc
235 lines (194 loc) · 4 KB
/
skhdrc
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
####################################
# LSP
####################################
# text completion
ctrl - space [
"acme" : L comp -e | writefocus
"edwood" : L comp -e | writefocus
]
# find references
cmd - r [
"acme" : L refs | writefocus
"edwood" : L refs | writefocus
]
# go to definition
cmd - d [
"acme" : L def | writefocus
"edwood" : L def | writefocus
]
####################################
# Utility
####################################
# comment line or selection
# cmd + /
cmd - 0x2C [
"acme" : xcom
"edwood" : xcom
]
# shift + cmd + +
shift + cmd - 0x18 [
"acme" : font -op inc
"edwood" : font -op inc
]
# shift + cmd + -
cmd - 0x1B [
"acme" : font -op dec
"edwood" : font -op dec
]
# execute "Put"
cmd - s [
"acme" : save
"edwood" : save
]
# insert tab or indent selection
tab [
"acme" : nynetab
"edwood" : nynetab
]
# unindent selection
shift - tab [
"acme" : nynetab -unindent=true
"edwood" : nynetab -unindent=true
]
####################################
# Movement
####################################
#
# Left
#
# move to the left by one character
left [
"acme" : move -d left
"edwood" : move -d left
]
# select text while moving to the left
shift - left [
"acme" : move -d left -s
"edwood" : move -d left -s
]
# move to the left by one word
alt - left [
"acme" : move -d left -w
"edwood" : move -d left -w
]
# select text while moving to the left by one word
shift + alt - left [
"acme" : move -d left -w -s
"edwood" : move -d left -w -s
]
# move to the left by one paragraph
# ctrl + cmd + [
ctrl + cmd - 0x21 [
"acme" : move -d left -p
"edwood" : move -d left -p
]
# move to the left by one paragraph
# shift + ctrl + cmd + [
shift + ctrl + cmd - 0x21 [
"acme" : move -d left -p -s
"edwood" : move -d left -p -s
]
# select text while moving to the beginning of the line
shift + cmd - left [
"acme" : move -d start -s
"edwood" : move -d start -s
]
# move to beginning of line
cmd - left [
"acme" : move -d start
"edwood" : move -d start
]
#
# Right
#
# move to the right by one character
right [
"acme" : move -d right
"edwood" : move -d right
]
# select text while moving to the right
shift - right [
"acme" : move -d right -s
"edwood" : move -d right -s
]
# move to the right by one word
alt - right [
"acme" : move -d right -w
"edwood" : move -d right -w
]
# select text while moving to the right by one word
shift + alt - right [
"acme" : move -d right -w -s
"edwood" : move -d right -w -s
]
# move to the right by one paragraph
# ctrl + cmd + ]
ctrl + cmd - 0x1E [
"acme" : move -d right -p
"edwood" : move -d right -p
]
# select text while moving to the right by one paragraph
# shift + ctrl + cmd + ]
shift + ctrl + cmd - 0x1E [
"acme" : move -d right -p -s
"edwood" : move -d right -p -s
]
# select text while moving to the end of the line
shift + cmd - right [
"acme" : move -d end -s
"edwood" : move -d end -s
]
# move to end of line
cmd - right [
"acme" : move -d end
"edwood" : move -d end
]
#
# Up
#
# move cursor up a line
up [
"acme" : move -d up
"edwood" : move -d up
]
# select text while moving cursor up a line
shift - up [
"acme" : move -d up -s
"edwood" : move -d up -s
]
#
# Down
#
# move cursor down a line
down [
"acme" : move -d down
"edwood" : move -d down
]
# select text while moving cursor down a line
shift - down [
"acme" : move -d down -s
"edwood" : move -d down -s
]
####################################
# Markdown
####################################
# insert link / wrap text with link syntax
cmd - k [
"acme" : md -op link
"edwood" : md -op link
]
# insert or wrap text with bold syntax
cmd - b [
"acme" : md -op bold
"edwood" : md -op bold
]
# insert or wrap text with italic syntax
cmd - i [
"acme" : md -op italic
"edwood" : md -op italic
]
# open markdown document with web browser
shift + cmd - r [
"acme" : md -op preview
"edwood" : md -op preview
]