-
Notifications
You must be signed in to change notification settings - Fork 2k
/
key-bindings.md
501 lines (450 loc) · 32.3 KB
/
key-bindings.md
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
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
# Key bindings
Zed can be configured via a simple JSON file located at `~/.config/zed/keymap.json`.
## Predefined keymaps
We have a growing collection of pre-defined keymaps in [zed repository's keymaps folder](https://github.com/zed-industries/zed/tree/main/assets/keymaps). Our current keymaps include:
- Atom
- JetBrains
- SublimeText
- TextMate
- VSCode (default)
These keymaps can be set via the `base_keymap` setting in your `keymap.json` file. Additionally, if you'd like to work from a clean slate, you can provide `"None"` to the setting.
## Custom key bindings
### Accessing custom key bindings
You can open `keymap.json` via `⌘` + `K`, `⌘` + `S`, the command palette, or the `Zed > Settings > Open Key Bindings` application menu item.
### Adding a custom key binding
To customize key bindings, specify a context and the list of bindings to set. Re-mapping an existing binding will clobber the existing binding in favor of the custom one.
An example of adding a set of custom key bindings:
```json
[
{
"context": "Editor",
"bindings": {
"ctrl-w": "editor::SelectLargerSyntaxNode",
"ctrl-shift-W": "editor::SelectSmallerSyntaxNode",
"ctrl-c": "editor::Cancel"
}
}
]
```
You can see more examples in Zed's [`default.json`](https://github.com/zed-industries/zed/blob/main/assets/keymaps/default-macos.json)
_There are some key bindings that can't be overridden; we are working on an issue surrounding this._
### Keybinding syntax
Zed has the ability to match against not just a single keypress, but a sequence of keys typed in order. Each key in the `"bindings"` map is a sequence of keypresses separated with a space.
Each key press is a sequence of modifiers followed by a key. The modifiers are:
- `ctrl-` The control key
- `cmd-` On macOS, this is the command key
- `alt-` On macOS, this is the option key
- `shift-` The shift key
- `fn-` The function key
The keys can be any single unicode codepoint that your keyboard generates (for example `a`, `0`, `£` or `ç`).
A few examples:
```
"bindings": {
"cmd-k cmd-s": "zed::OpenKeyMap", // matches ⌘-k then ⌘-s
"space e": "editor::Complete", // type space then e
"ç": "editor::Complete", // matches ⌥-c
}
```
NOTE: Keys on a keyboard are not always the same as the character they generate. For example `shift-e` actually types `E` (or `alt-c` types `ç`). Zed allows you to match against either the key and its modifiers or the character it generates. This means you can specify `alt-c` or `ç`, but not `alt-ç`. It is usually better to specify the key and its modifiers, as this will work better on different keyboard layouts.
### Remapping keys
A common request is to be able to map from one sequence of keys to another. As of Zed 0.124.0 you can do this with the `workspace::SendKeystrokes` action.
```json
[
{
"bindings": {
"alt-down": ["workspace::SendKeystrokes", "down down down down"],
"cmd-alt-c": [
"workspace::SendKeystrokes",
"cmd-shift-p copy relative path enter"
],
"cmd-alt-r": ["workspace::SendKeystrokes", "cmd-p README enter"]
}
},
{
"context": "Editor && vim_mode == insert",
"bindings": {
"j k": ["workspace::SendKeystrokes", "escape"],
}
}
]
```
There are some limitations to this, notably:
- Any asynchronous operation will not happen until after all your key bindings have been dispatched. For example this means that while you can use a binding to open a file (as in the `cmd-alt-r` example) you cannot send further keystrokes and hope to have them interpreted by the new view.
- - Other examples of asynchronous things are: communicating with a language server, changing the language of a buffer, anything that hits the network.
- There is a limit of 100 simulated keys at a time, this is to avoid accidental infinite recursion if you trigger SendKeystrokes again inside your bindings.
The argument to `SendKeystrokes` is a space-separated list of keystrokes (using the same syntax as above). Due to the way that keystrokes are parsed, any segment that is not recognized as a keypress will be sent verbatim to the currently focused input field.
### All key bindings
#### Global
| **Command** | **Target** | **Default Shortcut** |
| ------------------------- | ------------ | ----------------------- |
| Toggle focus | Collab Panel | `⌘ + Shift + C` |
| Toggle inlay hints | Editor | `Control + :` |
| Cancel | Menu | `Control + C` |
| Cancel | Menu | `Control + Escape` |
| Cancel | Menu | `Escape` |
| Cancel | Menu | `⌘ + Escape` |
| Confirm | Menu | `Enter` |
| Secondary confirm | Menu | `Control + Enter` |
| Secondary confirm | Menu | `⌘ + Enter` |
| Select first | Menu | `Page Up` |
| Select first | Menu | `Shift + Page Down` |
| Select first | Menu | `Shift + Page Up` |
| Select first | Menu | `⌘ + Up` |
| Select last | Menu | `Page Down` |
| Select last | Menu | `⌘ + Down` |
| Select next | Menu | `Control + N` |
| Select next | Menu | `Down` |
| Select prev | Menu | `Control + P` |
| Select prev | Menu | `Up` |
| Confirm input | Picker | `Alt + Enter` |
| Confirm input | Picker | `⌘ + Alt + Enter` |
| Use selected query | Picker | `Shift + Enter` |
| Close window | Workspace | `⌘ + Shift + W` |
| Follow next collaborator | Workspace | `Control + Alt + ⌘ + F` |
| Open | Workspace | `⌘ + O` |
| Toggle zoom | Workspace | `Shift + Escape` |
| Debug elements | Zed | `⌘ + Alt + I` |
| Decrease buffer font size | Zed | `⌘ + ` |
| Hide | Zed | `⌘ + H` |
| Hide others | Zed | `Alt + ⌘ + H` |
| Increase buffer font size | Zed | `⌘ + +` |
| Increase buffer font size | Zed | `⌘ + =` |
| Minimize | Zed | `⌘ + M` |
| Open settings | Zed | `⌘ + ,` |
| Quit | Zed | `⌘ + Q` |
| Reset buffer font size | Zed | `⌘ + 0` |
| Toggle full screen | Zed | `Control + ⌘ + F` |
#### Editor
| **Command** | **Target** | **Default Shortcut** |
| -------------------------------- | ---------- | ------------------------------- |
| Add selection above | Editor | `⌘ + Alt + Up` |
| Add selection above | Editor | `⌘ + Control + P` |
| Add selection below | Editor | `⌘ + Alt + Down` |
| Add selection below | Editor | `⌘ + Control + N` |
| Backspace | Editor | `Backspace` |
| Backspace | Editor | `Control + H` |
| Backspace | Editor | `Shift + Backspace` |
| Cancel | Editor | `Escape` |
| Confirm code action | Editor | `Enter` |
| Confirm completion | Editor | `Enter` |
| Confirm completion | Editor | `Tab` |
| Confirm rename | Editor | `Enter` |
| Context menu first | Editor | `Page Up` |
| Context menu last | Editor | `Page Down` |
| Context menu next | Editor | `Control + N` |
| Context menu next | Editor | `Down` |
| Context menu prev | Editor | `Control + P` |
| Context menu prev | Editor | `Up` |
| Copy | Editor | `⌘ + C` |
| Cut | Editor | `⌘ + X` |
| Cut to end of line | Editor | `Control + K` |
| Delete | Editor | `Control + D` |
| Delete | Editor | `Delete` |
| Delete line | Editor | `⌘ + Shift + K` |
| Delete to beginning of line | Editor | `⌘ + Backspace` |
| Delete to end of line | Editor | `⌘ + Delete` |
| Delete to next subword end | Editor | `Control + Alt + D` |
| Delete to next subword end | Editor | `Control + Alt + Delete` |
| Delete to next word end | Editor | `Alt + D` |
| Delete to next word end | Editor | `Alt + Delete` |
| Delete to previous subword start | Editor | `Control + Alt + Backspace` |
| Delete to previous subword start | Editor | `Control + Alt + H` |
| Delete to previous word start | Editor | `Alt + Backspace` |
| Delete to previous word start | Editor | `Alt + H` |
| Delete to previous word start | Editor | `Control + W` |
| Display cursor names | Editor | `Control + ⌘ + C` |
| Duplicate line down | Editor | `Alt + Shift + Down` |
| Duplicate line up | Editor | `Alt + Shift + Up` |
| Find all references | Editor | `Alt + Shift + F12` |
| Fold | Editor | `Alt + ⌘ + [` |
| Format | Editor | `⌘ + Shift + I` |
| Go to definition | Editor | `F12` |
| Go to definition split | Editor | `Alt + F12` |
| Go to diagnostic | Editor | `F8` |
| Go to implementation | Editor | `Shift + F12` |
| Go to prev diagnostic | Editor | `Shift + F8` |
| Go to type definition | Editor | `⌘ + F12` |
| Go to type definition split | Editor | `Alt + ⌘ + F12` |
| Hover | Editor | `⌘ + K, ⌘ + I` |
| Indent | Editor | `⌘ + ]` |
| Join lines | Editor | `Control + J` |
| Move down | Editor | `Control + N` |
| Move down | Editor | `Down` |
| Move left | Editor | `Control + B` |
| Move left | Editor | `Left` |
| Move line down | Editor | `Alt + Down` |
| Move line up | Editor | `Alt + Up` |
| Move page down | Editor | `Control + V` |
| Move page down | Editor | `Shift + Page Down` |
| Move page up | Editor | `Alt + V` |
| Move page up | Editor | `Shift + Page Up` |
| Move right | Editor | `Control + F` |
| Move right | Editor | `Right` |
| Move to beginning | Editor | `⌘ + Up` |
| Move to beginning of line | Editor | `Control + A` |
| Move to beginning of line | Editor | `Home` |
| Move to beginning of line | Editor | `⌘ + Left` |
| Move to enclosing bracket | Editor | `Control + M` |
| Move to end | Editor | `⌘ + Down` |
| Move to end of line | Editor | `Control + E` |
| Move to end of line | Editor | `End` |
| Move to end of line | Editor | `⌘ + Right` |
| Move to end of paragraph | Editor | `Control + Down` |
| Move to next subword end | Editor | `Control + Alt + F` |
| Move to next subword end | Editor | `Control + Alt + Right` |
| Move to next word end | Editor | `Alt + F` |
| Move to next word end | Editor | `Alt + Right` |
| Move to previous subword start | Editor | `Control + Alt + B` |
| Move to previous subword start | Editor | `Control + Alt + Left` |
| Move to previous word start | Editor | `Alt + B` |
| Move to previous word start | Editor | `Alt + Left` |
| Move to start of paragraph | Editor | `Control + Up` |
| Move up | Editor | `Control + P` |
| Move up | Editor | `Up` |
| Next screen | Editor | `Control + L` |
| Outdent | Editor | `⌘ + [` |
| Page down | Editor | `Page Down` |
| Page up | Editor | `Page Up` |
| Paste | Editor | `⌘ + V` |
| Redo | Editor | `⌘ + Shift + Z` |
| Redo selection | Editor | `⌘ + Shift + U` |
| Rename | Editor | `F2` |
| Reveal in finder | Editor | `Alt + ⌘ + R` |
| Revert selected hunks | Editor | `⌘ + Alt + Z` |
| Select all | Editor | `⌘ + A` |
| Select all matches | Editor | `⌘ + Shift + L` |
| Select down | Editor | `Control + Shift + N` |
| Select down | Editor | `Shift + Down` |
| Select larger syntax node | Editor | `Control + Shift + Right` |
| Select left | Editor | `Control + Shift + B` |
| Select left | Editor | `Shift + Left` |
| Select line | Editor | `⌘ + L` |
| Select next | Editor | `⌘ + D` |
| Select next | Editor | `⌘ + K, ⌘ + D` |
| Select previous | Editor | `Control + ⌘ + D` |
| Select previous | Editor | `⌘ + K, Control + ⌘ + D` |
| Select right | Editor | `Control + Shift + F` |
| Select right | Editor | `Shift + Right` |
| Select smaller syntax node | Editor | `Control + Shift + Left` |
| Select to beginning | Editor | `⌘ + Shift + Up` |
| Select to beginning of line | Editor | `Control + Shift + A` |
| Select to beginning of line | Editor | `Shift + Home` |
| Select to beginning of line | Editor | `⌘ + Shift + Left` |
| Select to end | Editor | `⌘ + Shift + Down` |
| Select to end of line | Editor | `Control + Shift + E` |
| Select to end of line | Editor | `Shift + End` |
| Select to end of line | Editor | `⌘ + Shift + Right` |
| Select to end of paragraph | Editor | `Control + Shift + Down` |
| Select to next subword end | Editor | `Control + Alt + Shift + F` |
| Select to next subword end | Editor | `Control + Alt + Shift + Right` |
| Select to next word end | Editor | `Alt + Shift + F` |
| Select to next word end | Editor | `Alt + Shift + Right` |
| Select to previous subword start | Editor | `Control + Alt + Shift + B` |
| Select to previous subword start | Editor | `Control + Alt + Shift + Left` |
| Select to previous word start | Editor | `Alt + Shift + B` |
| Select to previous word start | Editor | `Alt + Shift + Left` |
| Select to start of paragraph | Editor | `Control + Shift + Up` |
| Select up | Editor | `Control + Shift + P` |
| Select up | Editor | `Shift + Up` |
| Show character palette | Editor | `Control + ⌘ + Space` |
| Show completions | Editor | `Control + Space` |
| Show inline completion | Editor | `Alt + \` |
| Tab | Editor | `Tab` |
| Tab prev | Editor | `Shift + Tab` |
| Toggle code actions | Editor | `⌘ + .` |
| Toggle comments | Editor | `⌘ + /` |
| Toggle git blame | Editor | `⌘ + Alt + G, B` |
| Toggle line numbers | Editor | `⌘ + ;` |
| Transpose | Editor | `Control + T` |
| Undo | Editor | `⌘ + Z` |
| Undo selection | Editor | `⌘ + U` |
| Unfold lines | Editor | `Alt + ⌘ + ]` |
#### Editor (Full Only)
| **Command** | **Target** | **Default Shortcut** |
| -------------------------------- | ------------- | -------------------- |
| Inline assist | Assistant | `Control + Enter` |
| Quote selection | Assistant | `⌘ + >` |
| Deploy | Buffer Search | `⌘ + Alt + F` |
| Deploy | Buffer Search | `⌘ + E` |
| Deploy | Buffer Search | `⌘ + F` |
| Accept partial inline completion | Editor | `Alt + Right` |
| Go to hunk | Editor | `⌘ + F8` |
| Go to prev hunk | Editor | `⌘ + Shift + F8` |
| Newline | Editor | `Enter` |
| Newline | Editor | `Shift + Enter` |
| Newline above | Editor | `⌘ + Shift + Enter` |
| Newline below | Editor | `⌘ + Enter` |
| Next inline completion | Editor | `Alt + ]` |
| Open excerpts | Editor | `Alt + Enter` |
| Open excerpts split | Editor | `⌘ + K, Enter` |
| Previous inline completion | Editor | `Alt + [` |
| Toggle soft wrap | Editor | `Alt + Z` |
| Toggle | Go To Line | `Control + G` |
| Toggle | Outline | `⌘ + Shift + O` |
#### Editor (Auto Height Only)
| **Command** | **Target** | **Default Shortcut** |
| ------------- | ---------- | ------------------------- |
| Newline | Editor | `Control + Enter` |
| Newline | Editor | `Shift + Enter` |
| Newline below | Editor | `Control + Shift + Enter` |
#### Pane
| **Command** | **Target** | **Default Shortcut** |
| ----------------------------- | -------------- | ----------------------- |
| Activate item 1 | Pane | `Control + 1` |
| Activate item 2 | Pane | `Control + 2` |
| Activate item 3 | Pane | `Control + 3` |
| Activate item 4 | Pane | `Control + 4` |
| Activate item 5 | Pane | `Control + 5` |
| Activate item 6 | Pane | `Control + 6` |
| Activate item 7 | Pane | `Control + 7` |
| Activate item 8 | Pane | `Control + 8` |
| Activate item 9 | Pane | `Control + 9` |
| Activate last item | Pane | `Control + 0` |
| Activate next item | Pane | `Alt + ⌘ + Right` |
| Activate next item | Pane | `⌘ + }` |
| Activate prev item | Pane | `Alt + ⌘ + Left` |
| Activate prev item | Pane | `⌘ + {` |
| Close active item | Pane | `⌘ + W` |
| Close all items | Pane | `⌘ + K, ⌘ + W` |
| Close clean items | Pane | `⌘ + K, U` |
| Close inactive items | Pane | `Alt + ⌘ + T` |
| Go back | Pane | `Control + ` |
| Go forward | Pane | `Control + _` |
| Reopen closed item | Pane | `⌘ + Shift + T` |
| Split down | Pane | `⌘ + K, Down` |
| Split left | Pane | `⌘ + K, Left` |
| Split right | Pane | `⌘ + K, Right` |
| Split up | Pane | `⌘ + K, Up` |
| Toggle filters | Project Search | `Alt + ⌘ + F` |
| Toggle focus | Project Search | `⌘ + F` |
| Toggle focus | Project Search | `⌘ + Shift + F` |
| Activate regex mode | Search | `Alt + ⌘ + G` |
| Activate text mode | Search | `Alt + ⌘ + X` |
| Cycle mode | Search | `Alt + Tab` |
| Select all matches | Search | `Alt + Enter` |
| Select next match | Search | `⌘ + G` |
| Select prev match | Search | `⌘ + Shift + G` |
| Toggle case sensitive | Search | `Alt + ⌘ + C` |
| Toggle replace | Search | `⌘ + Shift + H` |
| Toggle whole word | Search | `Alt + ⌘ + W` |
| Close inactive tabs and panes | Workspace | `Control + Alt + ⌘ + W` |
#### Buffer Search Bar
| **Command** | **Target** | **Default Shortcut** |
| ---------------------- | ------------- | -------------------- |
| Dismiss | Buffer Search | `Escape` |
| Focus editor | Buffer Search | `Tab` |
| Cycle mode | Search | `Alt + Tab` |
| Focus search | Search | `⌘ + F` |
| Next history query | Search | `Down` |
| Previous history query | Search | `Up` |
| Replace all | Search | `⌘ + Enter` |
| Replace next | Search | `Enter` |
| Select all matches | Search | `Alt + Enter` |
| Select next match | Search | `Enter` |
| Select prev match | Search | `Shift + Enter` |
| Toggle replace | Search | `⌘ + Alt + F` |
#### Workspace
| **Command** | **Target** | **Default Shortcut** |
| -------------------------------- | ----------------- | ----------------------- |
| Toggle focus | Assistant | `⌘ + ?` |
| Open recent | Branches | `Alt + ⌘ + B` |
| Toggle | Command Palette | `⌘ + Shift + P` |
| Deploy | Diagnostics | `⌘ + Shift + M` |
| Toggle | File Finder | `⌘ + P` |
| Toggle | Language Selector | `⌘ + K, M` |
| Deploy search | Pane | `⌘ + Shift + F` |
| Deploy search | Pane | `⌘ + Shift + H` |
| Toggle focus | Project Panel | `⌘ + Shift + E` |
| Toggle | Project Symbols | `⌘ + T` |
| Open recent | Projects | `Alt + ⌘ + O` |
| Toggle | Tab Switcher | `Control + Shift + Tab` |
| Toggle | Tab Switcher | `Control + Tab` |
| Rerun | Task | `Alt + T` |
| Spawn | Task | `Alt + Shift + T` |
| Toggle focus | Terminal Panel | ``Control + ` `` |
| Toggle | Theme Selector | `⌘ + K, ⌘ + T` |
| Activate pane 1 | Workspace | `⌘ + 1` |
| Activate pane 2 | Workspace | `⌘ + 2` |
| Activate pane 3 | Workspace | `⌘ + 3` |
| Activate pane 4 | Workspace | `⌘ + 4` |
| Activate pane 5 | Workspace | `⌘ + 5` |
| Activate pane 6 | Workspace | `⌘ + 6` |
| Activate pane 7 | Workspace | `⌘ + 7` |
| Activate pane 8 | Workspace | `⌘ + 8` |
| Activate pane 9 | Workspace | `⌘ + 9` |
| Activate pane in direction down | Workspace | `⌘ + K, ⌘ + Down` |
| Activate pane in direction left | Workspace | `⌘ + K, ⌘ + Left` |
| Activate pane in direction right | Workspace | `⌘ + K, ⌘ + Right` |
| Activate pane in direction up | Workspace | `⌘ + K, ⌘ + Up` |
| Close all docks | Workspace | `Alt + ⌘ + Y` |
| New file | Workspace | `⌘ + N` |
| New terminal | Workspace | `Control + ~` |
| New window | Workspace | `⌘ + Shift + N` |
| Save | Workspace | `⌘ + S` |
| Save all | Workspace | `⌘ + Alt + S` |
| Save as | Workspace | `⌘ + Shift + S` |
| Save without format | Workspace | `⌘ + K, S` |
| Swap pane in direction | Workspace | `⌘ + K, Shift + Down` |
| Swap pane in direction | Workspace | `⌘ + K, Shift + Left` |
| Swap pane in direction | Workspace | `⌘ + K, Shift + Right` |
| Swap pane in direction | Workspace | `⌘ + K, Shift + Up` |
| Toggle bottom dock | Workspace | `⌘ + J` |
| Toggle left dock | Workspace | `⌘ + B` |
| Toggle right dock | Workspace | `⌘ + R` |
| Unfollow | Workspace | `Escape` |
| Open keymap | Zed | `⌘ + K, ⌘ + S` |
#### Project Panel
| **Command** | **Target** | **Default Shortcut** |
| ----------------------- | ------------- | --------------------- |
| Collapse selected entry | Project Panel | `Left` |
| Copy | Project Panel | `⌘ + C` |
| Copy path | Project Panel | `⌘ + Alt + C` |
| Copy relative path | Project Panel | `Alt + ⌘ + Shift + C` |
| Cut | Project Panel | `⌘ + X` |
| Delete | Project Panel | `Backspace` |
| Delete | Project Panel | `Delete` |
| Delete | Project Panel | `⌘ + Backspace` |
| Delete | Project Panel | `⌘ + Delete` |
| Expand selected entry | Project Panel | `Right` |
| New directory | Project Panel | `Alt + ⌘ + N` |
| New file | Project Panel | `⌘ + N` |
| New search in directory | Project Panel | `Alt + Shift + F` |
| Open | Project Panel | `Space` |
| Paste | Project Panel | `⌘ + V` |
| Rename | Project Panel | `Enter` |
| Rename | Project Panel | `F2` |
| Reveal in finder | Project Panel | `Alt + ⌘ + R` |
#### Project Search Bar
| **Command** | **Target** | **Default Shortcut** |
| ---------------------- | -------------- | -------------------- |
| Search in new | Project Search | `⌘ + Enter` |
| Toggle focus | Project Search | `Escape` |
| Activate regex mode | Search | `Alt + ⌘ + G` |
| Activate text mode | Search | `Alt + ⌘ + X` |
| Cycle mode | Search | `Alt + Tab` |
| Focus search | Search | `⌘ + Shift + F` |
| Next history query | Search | `Down` |
| Previous history query | Search | `Up` |
| Replace all | Search | `⌘ + Enter` |
| Replace next | Search | `Enter` |
| Toggle replace | Search | `⌘ + Shift + H` |
#### Terminal
| **Command** | **Target** | **Default Shortcut** |
| --------------------------- | ---------- | --------------------- |
| Clear | Terminal | `⌘ + K` |
| Copy | Terminal | `⌘ + C` |
| Delete line | Terminal | `⌘ + Backspace` |
| Move to beginning of line | Terminal | `⌘ + Left` |
| Move to end of line | Terminal | `⌘ + Right` |
| Move to next word end | Terminal | `Alt + Right` |
| Move to previous word start | Terminal | `Alt + Left` |
| Paste | Terminal | `⌘ + V` |
| Show character palette | Terminal | `Control + ⌘ + Space` |
#### Assistant Editor
| **Command** | **Target** | **Default Shortcut** |
| ------------------ | ---------- | -------------------- |
| Assist | Assistant | `⌘ + Enter` |
| Cycle message role | Assistant | `Control + R` |
| Quote selection | Assistant | `⌘ + >` |
| Split | Assistant | `Shift + Enter` |
| Save | Workspace | `⌘ + S` |