key-bindings.md

  1# Key bindings
  2
  3Zed can be configured via a simple JSON file located at `~/.config/zed/keymap.json`.
  4
  5## Predefined keymaps
  6
  7We 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:
  8
  9- Atom
 10- JetBrains
 11- SublimeText
 12- TextMate
 13- VSCode (default)
 14
 15These keymaps can be set via the `base_keymap` setting in your `settings.json` file. Additionally, if you'd like to work from a clean slate, you can provide `"None"` to the setting.
 16
 17## Custom key bindings
 18
 19### Accessing custom key bindings
 20
 21You can open `keymap.json` via `โŒ˜` + `K`, `โŒ˜` + `S`, the command palette, or the `Zed > Settings > Open Key Bindings` application menu item.
 22
 23### Adding a custom key binding
 24
 25To 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.
 26
 27An example of adding a set of custom key bindings:
 28
 29```json
 30[
 31  {
 32    "context": "Editor",
 33    "bindings": {
 34      "ctrl-w": "editor::SelectLargerSyntaxNode",
 35      "ctrl-shift-W": "editor::SelectSmallerSyntaxNode",
 36      "ctrl-c": "editor::Cancel"
 37    }
 38  }
 39]
 40```
 41
 42You can see more examples in Zed's [`default.json`](https://github.com/zed-industries/zed/blob/main/assets/keymaps/default-macos.json)
 43
 44_There are some key bindings that can't be overridden; we are working on an issue surrounding this._
 45
 46### Keybinding syntax
 47
 48Zed 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.
 49
 50Each key press is a sequence of modifiers followed by a key. The modifiers are:
 51
 52- `ctrl-` The control key
 53- `cmd-` On macOS, this is the command key
 54- `alt-` On macOS, this is the option key
 55- `shift-` The shift key
 56- `fn-` The function key
 57
 58The keys can be any single unicode codepoint that your keyboard generates (for example `a`, `0`, `ยฃ` or `รง`).
 59
 60A few examples:
 61
 62```
 63 "bindings": {
 64   "cmd-k cmd-s": "zed::OpenKeymap", // matches โŒ˜-k then โŒ˜-s
 65   "space e": "editor::Complete", // type space then e
 66   "รง": "editor::Complete", // matches โŒฅ-c
 67 }
 68```
 69
 70NOTE: 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.
 71
 72### Remapping keys
 73
 74A 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.
 75
 76```json
 77[
 78  {
 79    "bindings": {
 80      "alt-down": ["workspace::SendKeystrokes", "down down down down"],
 81      "cmd-alt-c": [
 82        "workspace::SendKeystrokes",
 83        "cmd-shift-p copy relative path enter"
 84      ],
 85      "cmd-alt-r": ["workspace::SendKeystrokes", "cmd-p README enter"]
 86    }
 87  },
 88  {
 89    "context": "Editor && vim_mode == insert",
 90    "bindings": {
 91      "j k": ["workspace::SendKeystrokes", "escape"]
 92    }
 93  }
 94]
 95```
 96
 97There are some limitations to this, notably:
 98
 99- 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.
100- - Other examples of asynchronous things are: communicating with a language server, changing the language of a buffer, anything that hits the network.
101- 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.
102
103The 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.
104
105### Forward keys to terminal
106
107If you're on Linux or Windows, you might find yourself wanting to forward key combinations to the built-in terminal instead of them being handled by Zed.
108
109For example, `ctrl-n` creates a new tab in Zed on Linux. If you want to send `ctrl-n` to the built-in terminal when it's focused, add the following to your keymap:
110
111```json
112{
113  "context": "Terminal",
114  "bindings": {
115    "ctrl-n": ["terminal::SendKeystroke", "ctrl-n"]
116  }
117}
118```
119
120### Task Key bindings
121
122You can also bind keys to launch Zed Tasks defined in your tasks.json.
123See the [tasks documentation](/docs/tasks#custom-keybindings-for-tasks) for more.
124
125### All key bindings
126
127#### Global
128
129| **Command**               | **Target**   | **Default Shortcut**    |
130| ------------------------- | ------------ | ----------------------- |
131| Toggle focus              | Collab Panel | `โŒ˜ + Shift + C`         |
132| Toggle inlay hints        | Editor       | `Control + :`           |
133| Cancel                    | Menu         | `Control + C`           |
134| Cancel                    | Menu         | `Control + Escape`      |
135| Cancel                    | Menu         | `Escape`                |
136| Cancel                    | Menu         | `โŒ˜ + Escape`            |
137| Confirm                   | Menu         | `Enter`                 |
138| Secondary confirm         | Menu         | `Control + Enter`       |
139| Secondary confirm         | Menu         | `โŒ˜ + Enter`             |
140| Select first              | Menu         | `Page Up`               |
141| Select first              | Menu         | `Shift + Page Down`     |
142| Select first              | Menu         | `Shift + Page Up`       |
143| Select first              | Menu         | `โŒ˜ + Up`                |
144| Select last               | Menu         | `Page Down`             |
145| Select last               | Menu         | `โŒ˜ + Down`              |
146| Select next               | Menu         | `Control + N`           |
147| Select next               | Menu         | `Down`                  |
148| Select prev               | Menu         | `Control + P`           |
149| Select prev               | Menu         | `Up`                    |
150| Confirm input             | Picker       | `Alt + Enter`           |
151| Confirm input             | Picker       | `โŒ˜ + Alt + Enter`       |
152| Use selected query        | Picker       | `Shift + Enter`         |
153| Close window              | Workspace    | `โŒ˜ + Shift + W`         |
154| Follow next collaborator  | Workspace    | `Control + Alt + โŒ˜ + F` |
155| Open                      | Workspace    | `โŒ˜ + O`                 |
156| Toggle zoom               | Workspace    | `Shift + Escape`        |
157| Debug elements            | Zed          | `โŒ˜ + Alt + I`           |
158| Decrease buffer font size | Zed          | `โŒ˜ + `                  |
159| Hide                      | Zed          | `โŒ˜ + H`                 |
160| Hide others               | Zed          | `Alt + โŒ˜ + H`           |
161| Increase buffer font size | Zed          | `โŒ˜ + +`                 |
162| Increase buffer font size | Zed          | `โŒ˜ + =`                 |
163| Minimize                  | Zed          | `โŒ˜ + M`                 |
164| Open settings             | Zed          | `โŒ˜ + ,`                 |
165| Quit                      | Zed          | `โŒ˜ + Q`                 |
166| Reset buffer font size    | Zed          | `โŒ˜ + 0`                 |
167| Toggle full screen        | Zed          | `Control + โŒ˜ + F`       |
168
169#### Editor
170
171| **Command**                      | **Target** | **Default Shortcut**            |
172| -------------------------------- | ---------- | ------------------------------- |
173| Add selection above              | Editor     | `โŒ˜ + Alt + Up`                  |
174| Add selection above              | Editor     | `โŒ˜ + Control + P`               |
175| Add selection below              | Editor     | `โŒ˜ + Alt + Down`                |
176| Add selection below              | Editor     | `โŒ˜ + Control + N`               |
177| Backspace                        | Editor     | `Backspace`                     |
178| Backspace                        | Editor     | `Control + H`                   |
179| Backspace                        | Editor     | `Shift + Backspace`             |
180| Cancel                           | Editor     | `Escape`                        |
181| Confirm code action              | Editor     | `Enter`                         |
182| Confirm completion               | Editor     | `Enter`                         |
183| Confirm completion               | Editor     | `Tab`                           |
184| Confirm rename                   | Editor     | `Enter`                         |
185| Context menu first               | Editor     | `Page Up`                       |
186| Context menu last                | Editor     | `Page Down`                     |
187| Context menu next                | Editor     | `Control + N`                   |
188| Context menu next                | Editor     | `Down`                          |
189| Context menu prev                | Editor     | `Control + P`                   |
190| Context menu prev                | Editor     | `Up`                            |
191| Copy                             | Editor     | `โŒ˜ + C`                         |
192| Cut                              | Editor     | `โŒ˜ + X`                         |
193| Cut to end of line               | Editor     | `Control + K`                   |
194| Delete                           | Editor     | `Control + D`                   |
195| Delete                           | Editor     | `Delete`                        |
196| Delete line                      | Editor     | `โŒ˜ + Shift + K`                 |
197| Delete to beginning of line      | Editor     | `โŒ˜ + Backspace`                 |
198| Delete to end of line            | Editor     | `โŒ˜ + Delete`                    |
199| Delete to next subword end       | Editor     | `Control + Alt + D`             |
200| Delete to next subword end       | Editor     | `Control + Alt + Delete`        |
201| Delete to next word end          | Editor     | `Alt + D`                       |
202| Delete to next word end          | Editor     | `Alt + Delete`                  |
203| Delete to previous subword start | Editor     | `Control + Alt + Backspace`     |
204| Delete to previous subword start | Editor     | `Control + Alt + H`             |
205| Delete to previous word start    | Editor     | `Alt + Backspace`               |
206| Delete to previous word start    | Editor     | `Alt + H`                       |
207| Delete to previous word start    | Editor     | `Control + W`                   |
208| Display cursor names             | Editor     | `Control + โŒ˜ + C`               |
209| Duplicate line down              | Editor     | `Alt + Shift + Down`            |
210| Duplicate line up                | Editor     | `Alt + Shift + Up`              |
211| Find all references              | Editor     | `Alt + Shift + F12`             |
212| Fold                             | Editor     | `Alt + โŒ˜ + [`                   |
213| Format                           | Editor     | `โŒ˜ + Shift + I`                 |
214| Go to definition                 | Editor     | `F12`                           |
215| Go to definition split           | Editor     | `Alt + F12`                     |
216| Go to diagnostic                 | Editor     | `F8`                            |
217| Go to implementation             | Editor     | `Shift + F12`                   |
218| Go to prev diagnostic            | Editor     | `Shift + F8`                    |
219| Go to type definition            | Editor     | `โŒ˜ + F12`                       |
220| Go to type definition split      | Editor     | `Alt + โŒ˜ + F12`                 |
221| Hover                            | Editor     | `โŒ˜ + K, โŒ˜ + I`                  |
222| Indent                           | Editor     | `โŒ˜ + ]`                         |
223| Join lines                       | Editor     | `Control + J`                   |
224| Move down                        | Editor     | `Control + N`                   |
225| Move down                        | Editor     | `Down`                          |
226| Move left                        | Editor     | `Control + B`                   |
227| Move left                        | Editor     | `Left`                          |
228| Move line down                   | Editor     | `Alt + Down`                    |
229| Move line up                     | Editor     | `Alt + Up`                      |
230| Move page down                   | Editor     | `Control + V`                   |
231| Move page down                   | Editor     | `Shift + Page Down`             |
232| Move page up                     | Editor     | `Alt + V`                       |
233| Move page up                     | Editor     | `Shift + Page Up`               |
234| Move right                       | Editor     | `Control + F`                   |
235| Move right                       | Editor     | `Right`                         |
236| Move to beginning                | Editor     | `โŒ˜ + Up`                        |
237| Move to beginning of line        | Editor     | `Control + A`                   |
238| Move to beginning of line        | Editor     | `Home`                          |
239| Move to beginning of line        | Editor     | `โŒ˜ + Left`                      |
240| Move to enclosing bracket        | Editor     | `Control + M`                   |
241| Move to end                      | Editor     | `โŒ˜ + Down`                      |
242| Move to end of line              | Editor     | `Control + E`                   |
243| Move to end of line              | Editor     | `End`                           |
244| Move to end of line              | Editor     | `โŒ˜ + Right`                     |
245| Move to end of paragraph         | Editor     | `Control + Down`                |
246| Move to next subword end         | Editor     | `Control + Alt + F`             |
247| Move to next subword end         | Editor     | `Control + Alt + Right`         |
248| Move to next word end            | Editor     | `Alt + F`                       |
249| Move to next word end            | Editor     | `Alt + Right`                   |
250| Move to previous subword start   | Editor     | `Control + Alt + B`             |
251| Move to previous subword start   | Editor     | `Control + Alt + Left`          |
252| Move to previous word start      | Editor     | `Alt + B`                       |
253| Move to previous word start      | Editor     | `Alt + Left`                    |
254| Move to start of paragraph       | Editor     | `Control + Up`                  |
255| Move up                          | Editor     | `Control + P`                   |
256| Move up                          | Editor     | `Up`                            |
257| Next screen                      | Editor     | `Control + L`                   |
258| Outdent                          | Editor     | `โŒ˜ + [`                         |
259| Page down                        | Editor     | `Page Down`                     |
260| Page up                          | Editor     | `Page Up`                       |
261| Paste                            | Editor     | `โŒ˜ + V`                         |
262| Redo                             | Editor     | `โŒ˜ + Shift + Z`                 |
263| Redo selection                   | Editor     | `โŒ˜ + Shift + U`                 |
264| Rename                           | Editor     | `F2`                            |
265| Reveal in finder                 | Editor     | `Alt + โŒ˜ + R`                   |
266| Revert selected hunks            | Editor     | `โŒ˜ + Alt + Z`                   |
267| Select all                       | Editor     | `โŒ˜ + A`                         |
268| Select all matches               | Editor     | `โŒ˜ + Shift + L`                 |
269| Select down                      | Editor     | `Control + Shift + N`           |
270| Select down                      | Editor     | `Shift + Down`                  |
271| Select larger syntax node        | Editor     | `Control + Shift + Right`       |
272| Select left                      | Editor     | `Control + Shift + B`           |
273| Select left                      | Editor     | `Shift + Left`                  |
274| Select line                      | Editor     | `โŒ˜ + L`                         |
275| Select next                      | Editor     | `โŒ˜ + D`                         |
276| Select next                      | Editor     | `โŒ˜ + K, โŒ˜ + D`                  |
277| Select previous                  | Editor     | `Control + โŒ˜ + D`               |
278| Select previous                  | Editor     | `โŒ˜ + K, Control + โŒ˜ + D`        |
279| Select right                     | Editor     | `Control + Shift + F`           |
280| Select right                     | Editor     | `Shift + Right`                 |
281| Select smaller syntax node       | Editor     | `Control + Shift + Left`        |
282| Select to beginning              | Editor     | `โŒ˜ + Shift + Up`                |
283| Select to beginning of line      | Editor     | `Control + Shift + A`           |
284| Select to beginning of line      | Editor     | `Shift + Home`                  |
285| Select to beginning of line      | Editor     | `โŒ˜ + Shift + Left`              |
286| Select to end                    | Editor     | `โŒ˜ + Shift + Down`              |
287| Select to end of line            | Editor     | `Control + Shift + E`           |
288| Select to end of line            | Editor     | `Shift + End`                   |
289| Select to end of line            | Editor     | `โŒ˜ + Shift + Right`             |
290| Select to end of paragraph       | Editor     | `Control + Shift + Down`        |
291| Select to next subword end       | Editor     | `Control + Alt + Shift + F`     |
292| Select to next subword end       | Editor     | `Control + Alt + Shift + Right` |
293| Select to next word end          | Editor     | `Alt + Shift + F`               |
294| Select to next word end          | Editor     | `Alt + Shift + Right`           |
295| Select to previous subword start | Editor     | `Control + Alt + Shift + B`     |
296| Select to previous subword start | Editor     | `Control + Alt + Shift + Left`  |
297| Select to previous word start    | Editor     | `Alt + Shift + B`               |
298| Select to previous word start    | Editor     | `Alt + Shift + Left`            |
299| Select to start of paragraph     | Editor     | `Control + Shift + Up`          |
300| Select up                        | Editor     | `Control + Shift + P`           |
301| Select up                        | Editor     | `Shift + Up`                    |
302| Show character palette           | Editor     | `Control + โŒ˜ + Space`           |
303| Show completions                 | Editor     | `Control + Space`               |
304| Show inline completion           | Editor     | `Alt + \`                       |
305| Tab                              | Editor     | `Tab`                           |
306| Tab prev                         | Editor     | `Shift + Tab`                   |
307| Toggle code actions              | Editor     | `โŒ˜ + .`                         |
308| Toggle comments                  | Editor     | `โŒ˜ + /`                         |
309| Toggle git blame                 | Editor     | `โŒ˜ + Alt + G, B`                |
310| Toggle line numbers              | Editor     | `โŒ˜ + ;`                         |
311| Transpose                        | Editor     | `Control + T`                   |
312| Undo                             | Editor     | `โŒ˜ + Z`                         |
313| Undo selection                   | Editor     | `โŒ˜ + U`                         |
314| Unfold lines                     | Editor     | `Alt + โŒ˜ + ]`                   |
315
316#### Editor (Full Only)
317
318| **Command**                      | **Target**    | **Default Shortcut** |
319| -------------------------------- | ------------- | -------------------- |
320| Inline assist                    | Assistant     | `Control + Enter`    |
321| Quote selection                  | Assistant     | `โŒ˜ + >`              |
322| Deploy                           | Buffer Search | `โŒ˜ + Alt + F`        |
323| Deploy                           | Buffer Search | `โŒ˜ + E`              |
324| Deploy                           | Buffer Search | `โŒ˜ + F`              |
325| Accept partial inline completion | Editor        | `Alt + Right`        |
326| Go to hunk                       | Editor        | `โŒ˜ + F8`             |
327| Go to prev hunk                  | Editor        | `โŒ˜ + Shift + F8`     |
328| Newline                          | Editor        | `Enter`              |
329| Newline                          | Editor        | `Shift + Enter`      |
330| Newline above                    | Editor        | `โŒ˜ + Shift + Enter`  |
331| Newline below                    | Editor        | `โŒ˜ + Enter`          |
332| Next inline completion           | Editor        | `Alt + ]`            |
333| Open excerpts                    | Editor        | `Alt + Enter`        |
334| Open excerpts split              | Editor        | `โŒ˜ + K, Enter`       |
335| Previous inline completion       | Editor        | `Alt + [`            |
336| Toggle soft wrap                 | Editor        | `Alt + Z`            |
337| Toggle                           | Go To Line    | `Control + G`        |
338| Toggle                           | Outline       | `โŒ˜ + Shift + O`      |
339
340#### Editor (Auto Height Only)
341
342| **Command**   | **Target** | **Default Shortcut**      |
343| ------------- | ---------- | ------------------------- |
344| Newline       | Editor     | `Control + Enter`         |
345| Newline       | Editor     | `Shift + Enter`           |
346| Newline below | Editor     | `Control + Shift + Enter` |
347
348#### Pane
349
350| **Command**                   | **Target**     | **Default Shortcut**    |
351| ----------------------------- | -------------- | ----------------------- |
352| Activate item 1               | Pane           | `Control + 1`           |
353| Activate item 2               | Pane           | `Control + 2`           |
354| Activate item 3               | Pane           | `Control + 3`           |
355| Activate item 4               | Pane           | `Control + 4`           |
356| Activate item 5               | Pane           | `Control + 5`           |
357| Activate item 6               | Pane           | `Control + 6`           |
358| Activate item 7               | Pane           | `Control + 7`           |
359| Activate item 8               | Pane           | `Control + 8`           |
360| Activate item 9               | Pane           | `Control + 9`           |
361| Activate last item            | Pane           | `Control + 0`           |
362| Activate next item            | Pane           | `Alt + โŒ˜ + Right`       |
363| Activate next item            | Pane           | `โŒ˜ + }`                 |
364| Activate prev item            | Pane           | `Alt + โŒ˜ + Left`        |
365| Activate prev item            | Pane           | `โŒ˜ + {`                 |
366| Close active item             | Pane           | `โŒ˜ + W`                 |
367| Close all items               | Pane           | `โŒ˜ + K, โŒ˜ + W`          |
368| Close clean items             | Pane           | `โŒ˜ + K, U`              |
369| Close inactive items          | Pane           | `Alt + โŒ˜ + T`           |
370| Go back                       | Pane           | `Control + -`           |
371| Go forward                    | Pane           | `Control + _`           |
372| Reopen closed item            | Pane           | `โŒ˜ + Shift + T`         |
373| Split down                    | Pane           | `โŒ˜ + K, Down`           |
374| Split left                    | Pane           | `โŒ˜ + K, Left`           |
375| Split right                   | Pane           | `โŒ˜ + K, Right`          |
376| Split up                      | Pane           | `โŒ˜ + K, Up`             |
377| Toggle filters                | Project Search | `Alt + โŒ˜ + F`           |
378| Toggle focus                  | Project Search | `โŒ˜ + F`                 |
379| Toggle focus                  | Project Search | `โŒ˜ + Shift + F`         |
380| Activate regex mode           | Search         | `Alt + โŒ˜ + G`           |
381| Activate text mode            | Search         | `Alt + โŒ˜ + X`           |
382| Cycle mode                    | Search         | `Alt + Tab`             |
383| Select all matches            | Search         | `Alt + Enter`           |
384| Select next match             | Search         | `โŒ˜ + G`                 |
385| Select prev match             | Search         | `โŒ˜ + Shift + G`         |
386| Toggle case sensitive         | Search         | `Alt + โŒ˜ + C`           |
387| Toggle replace                | Search         | `โŒ˜ + Shift + H`         |
388| Toggle whole word             | Search         | `Alt + โŒ˜ + W`           |
389| Close inactive tabs and panes | Workspace      | `Control + Alt + โŒ˜ + W` |
390
391#### Buffer Search Bar
392
393| **Command**            | **Target**    | **Default Shortcut** |
394| ---------------------- | ------------- | -------------------- |
395| Dismiss                | Buffer Search | `Escape`             |
396| Focus editor           | Buffer Search | `Tab`                |
397| Cycle mode             | Search        | `Alt + Tab`          |
398| Focus search           | Search        | `โŒ˜ + F`              |
399| Next history query     | Search        | `Down`               |
400| Previous history query | Search        | `Up`                 |
401| Replace all            | Search        | `โŒ˜ + Enter`          |
402| Replace next           | Search        | `Enter`              |
403| Select all matches     | Search        | `Alt + Enter`        |
404| Select next match      | Search        | `Enter`              |
405| Select prev match      | Search        | `Shift + Enter`      |
406| Toggle replace         | Search        | `โŒ˜ + Alt + F`        |
407
408#### Workspace
409
410| **Command**                      | **Target**        | **Default Shortcut**    |
411| -------------------------------- | ----------------- | ----------------------- |
412| Toggle focus                     | Assistant         | `โŒ˜ + ?`                 |
413| Open recent                      | Branches          | `Alt + โŒ˜ + B`           |
414| Toggle                           | Command Palette   | `โŒ˜ + Shift + P`         |
415| Deploy                           | Diagnostics       | `โŒ˜ + Shift + M`         |
416| Toggle                           | File Finder       | `โŒ˜ + P`                 |
417| Toggle                           | Language Selector | `โŒ˜ + K, M`              |
418| Deploy search                    | Pane              | `โŒ˜ + Shift + F`         |
419| Deploy search                    | Pane              | `โŒ˜ + Shift + H`         |
420| Toggle focus                     | Project Panel     | `โŒ˜ + Shift + E`         |
421| Toggle                           | Project Symbols   | `โŒ˜ + T`                 |
422| Open recent                      | Projects          | `Alt + โŒ˜ + O`           |
423| Toggle                           | Tab Switcher      | `Control + Shift + Tab` |
424| Toggle                           | Tab Switcher      | `Control + Tab`         |
425| Rerun                            | Task              | `Alt + T`               |
426| Spawn                            | Task              | `Alt + Shift + T`       |
427| Toggle focus                     | Terminal Panel    | ``Control + ` ``        |
428| Toggle                           | Theme Selector    | `โŒ˜ + K, โŒ˜ + T`          |
429| Activate pane 1                  | Workspace         | `โŒ˜ + 1`                 |
430| Activate pane 2                  | Workspace         | `โŒ˜ + 2`                 |
431| Activate pane 3                  | Workspace         | `โŒ˜ + 3`                 |
432| Activate pane 4                  | Workspace         | `โŒ˜ + 4`                 |
433| Activate pane 5                  | Workspace         | `โŒ˜ + 5`                 |
434| Activate pane 6                  | Workspace         | `โŒ˜ + 6`                 |
435| Activate pane 7                  | Workspace         | `โŒ˜ + 7`                 |
436| Activate pane 8                  | Workspace         | `โŒ˜ + 8`                 |
437| Activate pane 9                  | Workspace         | `โŒ˜ + 9`                 |
438| Activate pane in direction down  | Workspace         | `โŒ˜ + K, โŒ˜ + Down`       |
439| Activate pane in direction left  | Workspace         | `โŒ˜ + K, โŒ˜ + Left`       |
440| Activate pane in direction right | Workspace         | `โŒ˜ + K, โŒ˜ + Right`      |
441| Activate pane in direction up    | Workspace         | `โŒ˜ + K, โŒ˜ + Up`         |
442| Close all docks                  | Workspace         | `Alt + โŒ˜ + Y`           |
443| New file                         | Workspace         | `โŒ˜ + N`                 |
444| New terminal                     | Workspace         | `Control + ~`           |
445| New window                       | Workspace         | `โŒ˜ + Shift + N`         |
446| Save                             | Workspace         | `โŒ˜ + S`                 |
447| Save all                         | Workspace         | `โŒ˜ + Alt + S`           |
448| Save as                          | Workspace         | `โŒ˜ + Shift + S`         |
449| Save without format              | Workspace         | `โŒ˜ + K, S`              |
450| Swap pane in direction           | Workspace         | `โŒ˜ + K, Shift + Down`   |
451| Swap pane in direction           | Workspace         | `โŒ˜ + K, Shift + Left`   |
452| Swap pane in direction           | Workspace         | `โŒ˜ + K, Shift + Right`  |
453| Swap pane in direction           | Workspace         | `โŒ˜ + K, Shift + Up`     |
454| Toggle bottom dock               | Workspace         | `โŒ˜ + J`                 |
455| Toggle left dock                 | Workspace         | `โŒ˜ + B`                 |
456| Toggle right dock                | Workspace         | `โŒ˜ + R`                 |
457| Unfollow                         | Workspace         | `Escape`                |
458| Open keymap                      | Zed               | `โŒ˜ + K, โŒ˜ + S`          |
459
460#### Project Panel
461
462| **Command**             | **Target**    | **Default Shortcut**  |
463| ----------------------- | ------------- | --------------------- |
464| Collapse selected entry | Project Panel | `Left`                |
465| Copy                    | Project Panel | `โŒ˜ + C`               |
466| Copy path               | Project Panel | `โŒ˜ + Alt + C`         |
467| Copy relative path      | Project Panel | `Alt + โŒ˜ + Shift + C` |
468| Cut                     | Project Panel | `โŒ˜ + X`               |
469| Delete                  | Project Panel | `Backspace`           |
470| Delete                  | Project Panel | `Delete`              |
471| Delete                  | Project Panel | `โŒ˜ + Backspace`       |
472| Delete                  | Project Panel | `โŒ˜ + Delete`          |
473| Expand selected entry   | Project Panel | `Right`               |
474| New directory           | Project Panel | `Alt + โŒ˜ + N`         |
475| New file                | Project Panel | `โŒ˜ + N`               |
476| New search in directory | Project Panel | `Alt + Shift + F`     |
477| Open                    | Project Panel | `Space`               |
478| Paste                   | Project Panel | `โŒ˜ + V`               |
479| Rename                  | Project Panel | `Enter`               |
480| Rename                  | Project Panel | `F2`                  |
481| Reveal in finder        | Project Panel | `Alt + โŒ˜ + R`         |
482
483#### Project Search Bar
484
485| **Command**            | **Target**     | **Default Shortcut** |
486| ---------------------- | -------------- | -------------------- |
487| Search in new          | Project Search | `โŒ˜ + Enter`          |
488| Toggle focus           | Project Search | `Escape`             |
489| Activate regex mode    | Search         | `Alt + โŒ˜ + G`        |
490| Activate text mode     | Search         | `Alt + โŒ˜ + X`        |
491| Cycle mode             | Search         | `Alt + Tab`          |
492| Focus search           | Search         | `โŒ˜ + Shift + F`      |
493| Next history query     | Search         | `Down`               |
494| Previous history query | Search         | `Up`                 |
495| Replace all            | Search         | `โŒ˜ + Enter`          |
496| Replace next           | Search         | `Enter`              |
497| Toggle replace         | Search         | `โŒ˜ + Shift + H`      |
498
499#### Terminal
500
501| **Command**                 | **Target** | **Default Shortcut**  |
502| --------------------------- | ---------- | --------------------- |
503| Clear                       | Terminal   | `โŒ˜ + K`               |
504| Copy                        | Terminal   | `โŒ˜ + C`               |
505| Delete line                 | Terminal   | `โŒ˜ + Backspace`       |
506| Move to beginning of line   | Terminal   | `โŒ˜ + Left`            |
507| Move to end of line         | Terminal   | `โŒ˜ + Right`           |
508| Move to next word end       | Terminal   | `Alt + Right`         |
509| Move to previous word start | Terminal   | `Alt + Left`          |
510| Paste                       | Terminal   | `โŒ˜ + V`               |
511| Show character palette      | Terminal   | `Control + โŒ˜ + Space` |
512
513#### Assistant Editor
514
515| **Command**        | **Target** | **Default Shortcut** |
516| ------------------ | ---------- | -------------------- |
517| Assist             | Assistant  | `โŒ˜ + Enter`          |
518| Cycle message role | Assistant  | `Control + R`        |
519| Quote selection    | Assistant  | `โŒ˜ + >`              |
520| Split              | Assistant  | `Shift + Enter`      |
521| Save               | Workspace  | `โŒ˜ + S`              |