-
Notifications
You must be signed in to change notification settings - Fork 401
/
Copy pathiTerm2.rb
269 lines (240 loc) · 4.72 KB
/
iTerm2.rb
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
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
cheatsheet do
title 'iTerm2'
docset_file_name 'iTerm2'
keyword 'iterm'
source_url 'http://cheat.kapeli.com'
category do
id "Editing"
entry do
command 'CMD+;'
name 'Autocomplete'
end
entry do
command 'CMD+SHIFT+H'
name 'Paste history'
end
entry do
command 'CMD+OPTION+B'
name 'Instant replay'
end
entry do
command 'CTRL+A'
name 'To the begining of line'
end
entry do
command 'CTRL+E'
name 'To the end of line'
end
entry do
command 'CTRL+F'
name 'Forward one character'
end
entry do
command 'CTRL+B'
name 'Backward one character'
end
entry do
command 'CTRL+D'
name 'Delete current character'
end
entry do
command 'CTRL+H'
name 'Delete previous character'
end
entry do
command 'CTRL+W'
name 'Kill the word behind the point'
end
entry do
command 'CTRL+K'
name 'Kill text from the point to the end of the line'
end
entry do
command 'CTRL+P'
name 'Previous history'
end
entry do
command 'CTRL+R'
name 'History reverse search'
end
end
category do
id 'Tab Navigation'
entry do
command 'CMD+T'
name 'Open new tab'
end
entry do
command 'CMD+W'
name 'Close current tab'
end
entry do
command 'CMD+1-9'
name 'Go to tab'
end
entry do
command 'CMD+SHIFT+]'
command 'CMD+N'
command 'CMD+Arrow Left'
name 'Next tab'
end
entry do
command 'CMD+SHIFT+['
command 'CMD+P'
command 'CMD+Arrow Right'
name 'Previous tab'
end
entry do
command 'CMD+OPTION+E'
name 'Expose feature, showing all tabs'
end
end
category do
id 'Pane Navigation'
entry do
command 'CMD+D'
name 'Split pane left-right'
end
entry do
command 'CMD+SHIFT+D'
name 'Split pane top-bottom'
end
entry do
command 'CMD+OPTION+H'
name 'Split pane left-right with new profile'
end
entry do
command 'CMD+OPTION+V'
name 'Split pane top-bottom with new profile'
end
entry do
command 'CMD+W'
name 'Close current pane'
end
entry do
command 'CMD+]'
name 'Next pane'
end
entry do
command 'CMD+['
name 'Previous pane'
end
entry do
command 'CMD+OPTION+I'
name 'Input to all panes in current tab'
end
end
category do
id 'Pane Sizing'
entry do
command 'CMD+CTRL+Arrow Up'
name 'Move top pane splitter up'
end
entry do
command 'CMD+CTRL+Arrow Down'
name 'Move bottom pane splitter down'
end
entry do
command 'CMD+CTRL+Arrow Left'
name 'Move left pane splitter left'
end
entry do
command 'CMD+CTRL+Arrow Right'
name 'Move right pane splitter right'
end
end
category do
id 'Search'
entry do
command 'CMD+F'
name 'Open search bar'
end
entry do
command 'CMD+G'
name 'Find next'
end
end
category do
id 'Mark'
entry do
command 'CMD+SHIFT+M'
name 'Set Mark'
end
entry do
command 'CMD+SHIFT+J'
name 'Jump to Mark'
end
end
category do
id 'Clear Screen'
entry do
command 'CMD+K'
name 'Clear buffer'
end
entry do
command 'CTRL+L'
name 'Move current line to the top'
end
end
category do
id 'Font Resizing & Zooming'
entry do
command 'CMD+OPTION+='
name 'Toggle maximize window'
end
entry do
command 'CMD+Return'
name 'Toggle full screen'
end
entry do
command 'CMD+SHIFT+Return'
name 'Maximize current pane'
end
entry do
command 'CMD+W'
name 'Close current pane'
end
entry do
command 'CMD+"+"'
name 'Make font larger'
end
entry do
command 'CMD+"-"'
name 'Make font smaller'
end
end
category do
id 'Broadcast Input'
entry do
command 'CMD+SHIFT+I'
name 'Broadcast input to all panes in all tabs'
end
entry do
command 'CMD+OPTION+I'
name 'Broadcast input to all panes in current tab'
end
end
category do
id 'Shell Integration'
entry do
command 'CMD+SHIFT+Arrow Up'
name 'Go to previous mark'
end
entry do
command 'CMD+SHIFT+Arrow Down'
name 'Go to next mark'
end
entry do
command 'CMD+OPTION+A'
name 'Alert on next mark'
end
entry do
command 'CMD+SHIFT+;'
name 'Show command history'
end
entry do
command 'CMD+OPTION+/'
name 'Show recent directories'
end
end
end