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-`, `win-` or `super-` for the platform modifier (Command on macOS, Windows key on Windows, and the Super key on Linux).
 54- `alt-` for alt (option on macOS)
 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 `รง`), or any named key (`tab`, `f1`, `shift`, or `cmd`).
 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   "shift shift": "file_finder::Toggle", // matches pressing and releasing shift twice
 68 }
 69```
 70
 71The `shift-` modifier can only be used in combination with a letter to indicate the uppercase version. For example `shift-g` matches typing `G`. Although on many keyboards shift is used to type punctuation characters like `(`, the keypress is not considered to be modified and so `shift-(` does not match.
 72
 73The `alt-` modifier can be used on many layouts to generate a different key. For example on macOS US keyboard the combination `alt-c` types `รง`. You can match against either in your keymap file, though by convention Zed spells this combination as `alt-c`.
 74
 75It is possible to match against typing a modifier key on its own. For example `shift shift` can be used to implement JetBrains search everywhere shortcut. In this case the binding happens on key release instead of key press.
 76
 77### Remapping keys
 78
 79A 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.
 80
 81```json
 82[
 83  {
 84    "bindings": {
 85      "alt-down": ["workspace::SendKeystrokes", "down down down down"],
 86      "cmd-alt-c": [
 87        "workspace::SendKeystrokes",
 88        "cmd-shift-p copy relative path enter"
 89      ],
 90      "cmd-alt-r": ["workspace::SendKeystrokes", "cmd-p README enter"]
 91    }
 92  },
 93  {
 94    "context": "Editor && vim_mode == insert",
 95    "bindings": {
 96      "j k": ["workspace::SendKeystrokes", "escape"]
 97    }
 98  }
 99]
100```
101
102There are some limitations to this, notably:
103
104- 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.
105- - Other examples of asynchronous things are: communicating with a language server, changing the language of a buffer, anything that hits the network.
106- 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.
107
108The 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.
109
110### Forward keys to terminal
111
112If 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.
113
114For 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:
115
116```json
117{
118  "context": "Terminal",
119  "bindings": {
120    "ctrl-n": ["terminal::SendKeystroke", "ctrl-n"]
121  }
122}
123```
124
125### Task Key bindings
126
127You can also bind keys to launch Zed Tasks defined in your tasks.json.
128See the [tasks documentation](/docs/tasks#custom-keybindings-for-tasks) for more.
129
130### All key bindings
131
132#### Global
133
134| **Command**               | **Target**   | **Default Shortcut**    |
135| ------------------------- | ------------ | ----------------------- |
136| Toggle focus              | Collab Panel | `โŒ˜ + Shift + C`         |
137| Toggle inlay hints        | Editor       | `Control + :`           |
138| Cancel                    | Menu         | `Control + C`           |
139| Cancel                    | Menu         | `Control + Escape`      |
140| Cancel                    | Menu         | `Escape`                |
141| Cancel                    | Menu         | `โŒ˜ + Escape`            |
142| Confirm                   | Menu         | `Enter`                 |
143| Secondary confirm         | Menu         | `Control + Enter`       |
144| Secondary confirm         | Menu         | `โŒ˜ + Enter`             |
145| Select first              | Menu         | `Page Up`               |
146| Select first              | Menu         | `Shift + Page Down`     |
147| Select first              | Menu         | `Shift + Page Up`       |
148| Select first              | Menu         | `โŒ˜ + Up`                |
149| Select last               | Menu         | `Page Down`             |
150| Select last               | Menu         | `โŒ˜ + Down`              |
151| Select next               | Menu         | `Control + N`           |
152| Select next               | Menu         | `Down`                  |
153| Select prev               | Menu         | `Control + P`           |
154| Select prev               | Menu         | `Up`                    |
155| Confirm input             | Picker       | `Alt + Enter`           |
156| Confirm input             | Picker       | `โŒ˜ + Alt + Enter`       |
157| Use selected query        | Picker       | `Shift + Enter`         |
158| Close window              | Workspace    | `โŒ˜ + Shift + W`         |
159| Follow next collaborator  | Workspace    | `Control + Alt + โŒ˜ + F` |
160| Open                      | Workspace    | `โŒ˜ + O`                 |
161| Toggle zoom               | Workspace    | `Shift + Escape`        |
162| Debug elements            | Zed          | `โŒ˜ + Alt + I`           |
163| Decrease buffer font size | Zed          | `โŒ˜ + -`                 |
164| Hide                      | Zed          | `โŒ˜ + H`                 |
165| Hide others               | Zed          | `Alt + โŒ˜ + H`           |
166| Increase buffer font size | Zed          | `โŒ˜ + +`                 |
167| Increase buffer font size | Zed          | `โŒ˜ + =`                 |
168| Minimize                  | Zed          | `โŒ˜ + M`                 |
169| Open settings             | Zed          | `โŒ˜ + ,`                 |
170| Quit                      | Zed          | `โŒ˜ + Q`                 |
171| Reset buffer font size    | Zed          | `โŒ˜ + 0`                 |
172| Toggle full screen        | Zed          | `Control + โŒ˜ + F`       |
173
174#### Editor
175
176| **Command**                      | **Target** | **Default Shortcut**            |
177| -------------------------------- | ---------- | ------------------------------- |
178| Add selection above              | Editor     | `โŒ˜ + Alt + Up`                  |
179| Add selection above              | Editor     | `โŒ˜ + Control + P`               |
180| Add selection below              | Editor     | `โŒ˜ + Alt + Down`                |
181| Add selection below              | Editor     | `โŒ˜ + Control + N`               |
182| Backspace                        | Editor     | `Backspace`                     |
183| Backspace                        | Editor     | `Control + H`                   |
184| Backspace                        | Editor     | `Shift + Backspace`             |
185| Cancel                           | Editor     | `Escape`                        |
186| Confirm code action              | Editor     | `Enter`                         |
187| Confirm completion               | Editor     | `Enter`                         |
188| Confirm completion               | Editor     | `Tab`                           |
189| Confirm rename                   | Editor     | `Enter`                         |
190| Context menu first               | Editor     | `Page Up`                       |
191| Context menu last                | Editor     | `Page Down`                     |
192| Context menu next                | Editor     | `Control + N`                   |
193| Context menu next                | Editor     | `Down`                          |
194| Context menu prev                | Editor     | `Control + P`                   |
195| Context menu prev                | Editor     | `Up`                            |
196| Copy                             | Editor     | `โŒ˜ + C`                         |
197| Cut                              | Editor     | `โŒ˜ + X`                         |
198| Cut to end of line               | Editor     | `Control + K`                   |
199| Delete                           | Editor     | `Control + D`                   |
200| Delete                           | Editor     | `Delete`                        |
201| Delete line                      | Editor     | `โŒ˜ + Shift + K`                 |
202| Delete to beginning of line      | Editor     | `โŒ˜ + Backspace`                 |
203| Delete to end of line            | Editor     | `โŒ˜ + Delete`                    |
204| Delete to next subword end       | Editor     | `Control + Alt + D`             |
205| Delete to next subword end       | Editor     | `Control + Alt + Delete`        |
206| Delete to next word end          | Editor     | `Alt + D`                       |
207| Delete to next word end          | Editor     | `Alt + Delete`                  |
208| Delete to previous subword start | Editor     | `Control + Alt + Backspace`     |
209| Delete to previous subword start | Editor     | `Control + Alt + H`             |
210| Delete to previous word start    | Editor     | `Alt + Backspace`               |
211| Delete to previous word start    | Editor     | `Alt + H`                       |
212| Delete to previous word start    | Editor     | `Control + W`                   |
213| Display cursor names             | Editor     | `Control + โŒ˜ + C`               |
214| Duplicate line down              | Editor     | `Alt + Shift + Down`            |
215| Duplicate line up                | Editor     | `Alt + Shift + Up`              |
216| Find all references              | Editor     | `Alt + Shift + F12`             |
217| Fold                             | Editor     | `Alt + โŒ˜ + [`                   |
218| Format                           | Editor     | `โŒ˜ + Shift + I`                 |
219| Go to definition                 | Editor     | `F12`                           |
220| Go to definition split           | Editor     | `Alt + F12`                     |
221| Go to declaration                | Editor     | `Ctrl + F12`                    |
222| Go to declaration split          | Editor     | `Alt + Ctrl + F12`              |
223| Go to diagnostic                 | Editor     | `F8`                            |
224| Go to implementation             | Editor     | `Shift + F12`                   |
225| Go to prev diagnostic            | Editor     | `Shift + F8`                    |
226| Go to type definition            | Editor     | `โŒ˜ + F12`                       |
227| Go to type definition split      | Editor     | `Alt + โŒ˜ + F12`                 |
228| Hover                            | Editor     | `โŒ˜ + K, โŒ˜ + I`                  |
229| Indent                           | Editor     | `โŒ˜ + ]`                         |
230| Join lines                       | Editor     | `Control + J`                   |
231| Move down                        | Editor     | `Control + N`                   |
232| Move down                        | Editor     | `Down`                          |
233| Move left                        | Editor     | `Control + B`                   |
234| Move left                        | Editor     | `Left`                          |
235| Move line down                   | Editor     | `Alt + Down`                    |
236| Move line up                     | Editor     | `Alt + Up`                      |
237| Move page down                   | Editor     | `Control + V`                   |
238| Move page down                   | Editor     | `Shift + Page Down`             |
239| Move page up                     | Editor     | `Alt + V`                       |
240| Move page up                     | Editor     | `Shift + Page Up`               |
241| Move right                       | Editor     | `Control + F`                   |
242| Move right                       | Editor     | `Right`                         |
243| Move to beginning                | Editor     | `โŒ˜ + Up`                        |
244| Move to beginning of line        | Editor     | `Control + A`                   |
245| Move to beginning of line        | Editor     | `Home`                          |
246| Move to beginning of line        | Editor     | `โŒ˜ + Left`                      |
247| Move to enclosing bracket        | Editor     | `Control + M`                   |
248| Move to end                      | Editor     | `โŒ˜ + Down`                      |
249| Move to end of line              | Editor     | `Control + E`                   |
250| Move to end of line              | Editor     | `End`                           |
251| Move to end of line              | Editor     | `โŒ˜ + Right`                     |
252| Move to end of paragraph         | Editor     | `Control + Down`                |
253| Move to next subword end         | Editor     | `Control + Alt + F`             |
254| Move to next subword end         | Editor     | `Control + Alt + Right`         |
255| Move to next word end            | Editor     | `Alt + F`                       |
256| Move to next word end            | Editor     | `Alt + Right`                   |
257| Move to previous subword start   | Editor     | `Control + Alt + B`             |
258| Move to previous subword start   | Editor     | `Control + Alt + Left`          |
259| Move to previous word start      | Editor     | `Alt + B`                       |
260| Move to previous word start      | Editor     | `Alt + Left`                    |
261| Move to start of paragraph       | Editor     | `Control + Up`                  |
262| Move up                          | Editor     | `Control + P`                   |
263| Move up                          | Editor     | `Up`                            |
264| Next screen                      | Editor     | `Control + L`                   |
265| Outdent                          | Editor     | `โŒ˜ + [`                         |
266| Page down                        | Editor     | `Page Down`                     |
267| Page up                          | Editor     | `Page Up`                       |
268| Paste                            | Editor     | `โŒ˜ + V`                         |
269| Redo                             | Editor     | `โŒ˜ + Shift + Z`                 |
270| Redo selection                   | Editor     | `โŒ˜ + Shift + U`                 |
271| Rename                           | Editor     | `F2`                            |
272| Reveal in File Manager           | Editor     | `Alt + โŒ˜ + R`                   |
273| Toggle hunk diff                 | Editor     | `โŒ˜ + '`                         |
274| Expand all hunk diffs            | Editor     | `โŒ˜ + "`                         |
275| Revert selected hunks            | Editor     | `โŒ˜ + Alt + Z`                   |
276| Select all                       | Editor     | `โŒ˜ + A`                         |
277| Select all matches               | Editor     | `โŒ˜ + Shift + L`                 |
278| Select down                      | Editor     | `Control + Shift + N`           |
279| Select down                      | Editor     | `Shift + Down`                  |
280| Select larger syntax node        | Editor     | `Control + Shift + Right`       |
281| Select left                      | Editor     | `Control + Shift + B`           |
282| Select left                      | Editor     | `Shift + Left`                  |
283| Select line                      | Editor     | `โŒ˜ + L`                         |
284| Select next                      | Editor     | `โŒ˜ + D`                         |
285| Select next                      | Editor     | `โŒ˜ + K, โŒ˜ + D`                  |
286| Select previous                  | Editor     | `Control + โŒ˜ + D`               |
287| Select previous                  | Editor     | `โŒ˜ + K, Control + โŒ˜ + D`        |
288| Select right                     | Editor     | `Control + Shift + F`           |
289| Select right                     | Editor     | `Shift + Right`                 |
290| Select smaller syntax node       | Editor     | `Control + Shift + Left`        |
291| Select to beginning              | Editor     | `โŒ˜ + Shift + Up`                |
292| Select to beginning of line      | Editor     | `Control + Shift + A`           |
293| Select to beginning of line      | Editor     | `Shift + Home`                  |
294| Select to beginning of line      | Editor     | `โŒ˜ + Shift + Left`              |
295| Select to end                    | Editor     | `โŒ˜ + Shift + Down`              |
296| Select to end of line            | Editor     | `Control + Shift + E`           |
297| Select to end of line            | Editor     | `Shift + End`                   |
298| Select to end of line            | Editor     | `โŒ˜ + Shift + Right`             |
299| Select to end of paragraph       | Editor     | `Control + Shift + Down`        |
300| Select to next subword end       | Editor     | `Control + Alt + Shift + F`     |
301| Select to next subword end       | Editor     | `Control + Alt + Shift + Right` |
302| Select to next word end          | Editor     | `Alt + Shift + F`               |
303| Select to next word end          | Editor     | `Alt + Shift + Right`           |
304| Select to previous subword start | Editor     | `Control + Alt + Shift + B`     |
305| Select to previous subword start | Editor     | `Control + Alt + Shift + Left`  |
306| Select to previous word start    | Editor     | `Alt + Shift + B`               |
307| Select to previous word start    | Editor     | `Alt + Shift + Left`            |
308| Select to start of paragraph     | Editor     | `Control + Shift + Up`          |
309| Select up                        | Editor     | `Control + Shift + P`           |
310| Select up                        | Editor     | `Shift + Up`                    |
311| Show character palette           | Editor     | `Control + โŒ˜ + Space`           |
312| Show completions                 | Editor     | `Control + Space`               |
313| Show inline completion           | Editor     | `Alt + \`                       |
314| Tab                              | Editor     | `Tab`                           |
315| Tab prev                         | Editor     | `Shift + Tab`                   |
316| Toggle code actions              | Editor     | `โŒ˜ + .`                         |
317| Toggle comments                  | Editor     | `โŒ˜ + /`                         |
318| Toggle git blame                 | Editor     | `โŒ˜ + Alt + G, B`                |
319| Toggle line numbers              | Editor     | `โŒ˜ + ;`                         |
320| Transpose                        | Editor     | `Control + T`                   |
321| Undo                             | Editor     | `โŒ˜ + Z`                         |
322| Undo selection                   | Editor     | `โŒ˜ + U`                         |
323| Unfold lines                     | Editor     | `Alt + โŒ˜ + ]`                   |
324
325#### Editor (Full Only)
326
327| **Command**                      | **Target**    | **Default Shortcut** |
328| -------------------------------- | ------------- | -------------------- |
329| Inline assist                    | Assistant     | `Control + Enter`    |
330| Quote selection                  | Assistant     | `โŒ˜ + >`              |
331| Deploy                           | Buffer Search | `โŒ˜ + Alt + F`        |
332| Deploy                           | Buffer Search | `โŒ˜ + E`              |
333| Deploy                           | Buffer Search | `โŒ˜ + F`              |
334| Accept partial inline completion | Editor        | `Alt + Right`        |
335| Go to hunk                       | Editor        | `โŒ˜ + F8`             |
336| Go to prev hunk                  | Editor        | `โŒ˜ + Shift + F8`     |
337| Newline                          | Editor        | `Enter`              |
338| Newline                          | Editor        | `Shift + Enter`      |
339| Newline above                    | Editor        | `โŒ˜ + Shift + Enter`  |
340| Newline below                    | Editor        | `โŒ˜ + Enter`          |
341| Next inline completion           | Editor        | `Alt + ]`            |
342| Open excerpts                    | Editor        | `Alt + Enter`        |
343| Open excerpts split              | Editor        | `โŒ˜ + K, Enter`       |
344| Previous inline completion       | Editor        | `Alt + [`            |
345| Toggle soft wrap                 | Editor        | `Alt + Z`            |
346| Toggle                           | Go To Line    | `Control + G`        |
347| Toggle                           | Outline       | `โŒ˜ + Shift + O`      |
348
349#### Editor (Auto Height Only)
350
351| **Command**   | **Target** | **Default Shortcut**      |
352| ------------- | ---------- | ------------------------- |
353| Newline       | Editor     | `Control + Enter`         |
354| Newline       | Editor     | `Shift + Enter`           |
355| Newline below | Editor     | `Control + Shift + Enter` |
356
357#### Pane
358
359| **Command**                   | **Target**     | **Default Shortcut**    |
360| ----------------------------- | -------------- | ----------------------- |
361| Activate item 1               | Pane           | `Control + 1`           |
362| Activate item 2               | Pane           | `Control + 2`           |
363| Activate item 3               | Pane           | `Control + 3`           |
364| Activate item 4               | Pane           | `Control + 4`           |
365| Activate item 5               | Pane           | `Control + 5`           |
366| Activate item 6               | Pane           | `Control + 6`           |
367| Activate item 7               | Pane           | `Control + 7`           |
368| Activate item 8               | Pane           | `Control + 8`           |
369| Activate item 9               | Pane           | `Control + 9`           |
370| Activate last item            | Pane           | `Control + 0`           |
371| Activate next item            | Pane           | `Alt + โŒ˜ + Right`       |
372| Activate next item            | Pane           | `โŒ˜ + }`                 |
373| Activate prev item            | Pane           | `Alt + โŒ˜ + Left`        |
374| Activate prev item            | Pane           | `โŒ˜ + {`                 |
375| Close active item             | Pane           | `โŒ˜ + W`                 |
376| Close all items               | Pane           | `โŒ˜ + K, โŒ˜ + W`          |
377| Close clean items             | Pane           | `โŒ˜ + K, U`              |
378| Close inactive items          | Pane           | `Alt + โŒ˜ + T`           |
379| Go back                       | Pane           | `Control + -`           |
380| Go forward                    | Pane           | `Control + _`           |
381| Reopen closed item            | Pane           | `โŒ˜ + Shift + T`         |
382| Split down                    | Pane           | `โŒ˜ + K, Down`           |
383| Split left                    | Pane           | `โŒ˜ + K, Left`           |
384| Split right                   | Pane           | `โŒ˜ + K, Right`          |
385| Split up                      | Pane           | `โŒ˜ + K, Up`             |
386| Toggle filters                | Project Search | `Alt + โŒ˜ + F`           |
387| Toggle focus                  | Project Search | `โŒ˜ + F`                 |
388| Toggle focus                  | Project Search | `โŒ˜ + Shift + F`         |
389| Activate regex mode           | Search         | `Alt + โŒ˜ + G`           |
390| Activate text mode            | Search         | `Alt + โŒ˜ + X`           |
391| Cycle mode                    | Search         | `Alt + Tab`             |
392| Select all matches            | Search         | `Alt + Enter`           |
393| Select next match             | Search         | `โŒ˜ + G`                 |
394| Select prev match             | Search         | `โŒ˜ + Shift + G`         |
395| Toggle case sensitive         | Search         | `Alt + โŒ˜ + C`           |
396| Toggle replace                | Search         | `โŒ˜ + Shift + H`         |
397| Toggle whole word             | Search         | `Alt + โŒ˜ + W`           |
398| Close inactive tabs and panes | Workspace      | `Control + Alt + โŒ˜ + W` |
399
400#### Buffer Search Bar
401
402| **Command**            | **Target**    | **Default Shortcut** |
403| ---------------------- | ------------- | -------------------- |
404| Dismiss                | Buffer Search | `Escape`             |
405| Focus editor           | Buffer Search | `Tab`                |
406| Cycle mode             | Search        | `Alt + Tab`          |
407| Focus search           | Search        | `โŒ˜ + F`              |
408| Next history query     | Search        | `Down`               |
409| Previous history query | Search        | `Up`                 |
410| Replace all            | Search        | `โŒ˜ + Enter`          |
411| Replace next           | Search        | `Enter`              |
412| Select all matches     | Search        | `Alt + Enter`        |
413| Select next match      | Search        | `Enter`              |
414| Select prev match      | Search        | `Shift + Enter`      |
415| Toggle replace         | Search        | `โŒ˜ + Alt + F`        |
416
417#### Workspace
418
419| **Command**                      | **Target**        | **Default Shortcut**    |
420| -------------------------------- | ----------------- | ----------------------- |
421| Toggle focus                     | Assistant         | `โŒ˜ + ?`                 |
422| Open recent                      | Branches          | `Alt + โŒ˜ + B`           |
423| Toggle                           | Command Palette   | `โŒ˜ + Shift + P`         |
424| Deploy                           | Diagnostics       | `โŒ˜ + Shift + M`         |
425| Toggle                           | File Finder       | `โŒ˜ + P`                 |
426| Toggle                           | Language Selector | `โŒ˜ + K, M`              |
427| Deploy search                    | Pane              | `โŒ˜ + Shift + F`         |
428| Deploy search                    | Pane              | `โŒ˜ + Shift + H`         |
429| Toggle focus                     | Project Panel     | `โŒ˜ + Shift + E`         |
430| Toggle                           | Project Symbols   | `โŒ˜ + T`                 |
431| Open recent                      | Projects          | `Alt + โŒ˜ + O`           |
432| Toggle                           | Tab Switcher      | `Control + Shift + Tab` |
433| Toggle                           | Tab Switcher      | `Control + Tab`         |
434| Rerun                            | Task              | `Alt + T`               |
435| Spawn                            | Task              | `Alt + Shift + T`       |
436| Toggle focus                     | Terminal Panel    | ``Control + ` ``        |
437| Toggle                           | Theme Selector    | `โŒ˜ + K, โŒ˜ + T`          |
438| Activate pane 1                  | Workspace         | `โŒ˜ + 1`                 |
439| Activate pane 2                  | Workspace         | `โŒ˜ + 2`                 |
440| Activate pane 3                  | Workspace         | `โŒ˜ + 3`                 |
441| Activate pane 4                  | Workspace         | `โŒ˜ + 4`                 |
442| Activate pane 5                  | Workspace         | `โŒ˜ + 5`                 |
443| Activate pane 6                  | Workspace         | `โŒ˜ + 6`                 |
444| Activate pane 7                  | Workspace         | `โŒ˜ + 7`                 |
445| Activate pane 8                  | Workspace         | `โŒ˜ + 8`                 |
446| Activate pane 9                  | Workspace         | `โŒ˜ + 9`                 |
447| Activate pane in direction down  | Workspace         | `โŒ˜ + K, โŒ˜ + Down`       |
448| Activate pane in direction left  | Workspace         | `โŒ˜ + K, โŒ˜ + Left`       |
449| Activate pane in direction right | Workspace         | `โŒ˜ + K, โŒ˜ + Right`      |
450| Activate pane in direction up    | Workspace         | `โŒ˜ + K, โŒ˜ + Up`         |
451| Close all docks                  | Workspace         | `Alt + โŒ˜ + Y`           |
452| New file                         | Workspace         | `โŒ˜ + N`                 |
453| New terminal                     | Workspace         | `Control + ~`           |
454| New window                       | Workspace         | `โŒ˜ + Shift + N`         |
455| Save                             | Workspace         | `โŒ˜ + S`                 |
456| Save all                         | Workspace         | `โŒ˜ + Alt + S`           |
457| Save as                          | Workspace         | `โŒ˜ + Shift + S`         |
458| Save without format              | Workspace         | `โŒ˜ + K, S`              |
459| Swap pane in direction           | Workspace         | `โŒ˜ + K, Shift + Down`   |
460| Swap pane in direction           | Workspace         | `โŒ˜ + K, Shift + Left`   |
461| Swap pane in direction           | Workspace         | `โŒ˜ + K, Shift + Right`  |
462| Swap pane in direction           | Workspace         | `โŒ˜ + K, Shift + Up`     |
463| Toggle bottom dock               | Workspace         | `โŒ˜ + J`                 |
464| Toggle left dock                 | Workspace         | `โŒ˜ + B`                 |
465| Toggle right dock                | Workspace         | `โŒ˜ + R`                 |
466| Unfollow                         | Workspace         | `Escape`                |
467| Open keymap                      | Zed               | `โŒ˜ + K, โŒ˜ + S`          |
468
469#### Project Panel
470
471| **Command**             | **Target**    | **Default Shortcut**  |
472| ----------------------- | ------------- | --------------------- |
473| Collapse selected entry | Project Panel | `Left`                |
474| Copy                    | Project Panel | `โŒ˜ + C`               |
475| Copy path               | Project Panel | `โŒ˜ + Alt + C`         |
476| Copy relative path      | Project Panel | `Alt + โŒ˜ + Shift + C` |
477| Cut                     | Project Panel | `โŒ˜ + X`               |
478| Delete                  | Project Panel | `Backspace`           |
479| Delete                  | Project Panel | `Delete`              |
480| Delete                  | Project Panel | `โŒ˜ + Backspace`       |
481| Delete                  | Project Panel | `โŒ˜ + Delete`          |
482| Expand selected entry   | Project Panel | `Right`               |
483| New directory           | Project Panel | `Alt + โŒ˜ + N`         |
484| New file                | Project Panel | `โŒ˜ + N`               |
485| New search in directory | Project Panel | `Alt + Shift + F`     |
486| Open                    | Project Panel | `Space`               |
487| Paste                   | Project Panel | `โŒ˜ + V`               |
488| Rename                  | Project Panel | `Enter`               |
489| Rename                  | Project Panel | `F2`                  |
490| Reveal in File Manager  | Project Panel | `Alt + โŒ˜ + R`         |
491
492#### Project Search Bar
493
494| **Command**            | **Target**     | **Default Shortcut** |
495| ---------------------- | -------------- | -------------------- |
496| Search in new          | Project Search | `โŒ˜ + Enter`          |
497| Toggle focus           | Project Search | `Escape`             |
498| Activate regex mode    | Search         | `Alt + โŒ˜ + G`        |
499| Activate text mode     | Search         | `Alt + โŒ˜ + X`        |
500| Cycle mode             | Search         | `Alt + Tab`          |
501| Focus search           | Search         | `โŒ˜ + Shift + F`      |
502| Next history query     | Search         | `Down`               |
503| Previous history query | Search         | `Up`                 |
504| Replace all            | Search         | `โŒ˜ + Enter`          |
505| Replace next           | Search         | `Enter`              |
506| Toggle replace         | Search         | `โŒ˜ + Shift + H`      |
507
508#### Terminal
509
510| **Command**                 | **Target** | **Default Shortcut**  |
511| --------------------------- | ---------- | --------------------- |
512| Clear                       | Terminal   | `โŒ˜ + K`               |
513| Copy                        | Terminal   | `โŒ˜ + C`               |
514| Delete line                 | Terminal   | `โŒ˜ + Backspace`       |
515| Move to beginning of line   | Terminal   | `โŒ˜ + Left`            |
516| Move to end of line         | Terminal   | `โŒ˜ + Right`           |
517| Move to next word end       | Terminal   | `Alt + Right`         |
518| Move to previous word start | Terminal   | `Alt + Left`          |
519| Paste                       | Terminal   | `โŒ˜ + V`               |
520| Show character palette      | Terminal   | `Control + โŒ˜ + Space` |
521
522#### Assistant Editor
523
524| **Command**        | **Target** | **Default Shortcut** |
525| ------------------ | ---------- | -------------------- |
526| Assist             | Assistant  | `โŒ˜ + Enter`          |
527| Cycle message role | Assistant  | `Control + R`        |
528| Quote selection    | Assistant  | `โŒ˜ + >`              |
529| Split              | Assistant  | `Shift + Enter`      |
530| Save               | Workspace  | `โŒ˜ + S`              |