emacs.json

 1// documentation: https://zed.dev/docs/key-bindings
 2//
 3// To see the default key bindings run `zed: open default keymap`
 4// from the command palette.
 5[
 6  {
 7    "context": "Editor",
 8    "bindings": {
 9      "ctrl-g": "editor::Cancel",
10      "ctrl-shift-g": "go_to_line::Toggle",
11      //"ctrl-space": "editor::SetMark",
12      "ctrl-x u": "editor::Undo",
13      "ctrl-x ctrl-u": "editor::Redo",
14      "ctrl-f": "editor::MoveRight",
15      "ctrl-b": "editor::MoveLeft",
16      "ctrl-n": "editor::MoveDown",
17      "ctrl-p": "editor::MoveUp",
18      "ctrl-a": "editor::MoveToBeginningOfLine",
19      "ctrl-e": "editor::MoveToEndOfLine",
20      "alt-f": "editor::MoveToNextSubwordEnd",
21      "alt-b": "editor::MoveToPreviousSubwordStart",
22      "ctrl-d": "editor::Delete",
23      "alt-d": "editor::DeleteToNextWordEnd",
24      "ctrl-k": "editor::CutToEndOfLine",
25      "ctrl-w": "editor::Cut",
26      "alt-w": "editor::Copy",
27      "ctrl-y": "editor::Paste",
28      "ctrl-_": "editor::Undo",
29      "ctrl-v": "editor::MovePageDown",
30      "alt-v": "editor::MovePageUp",
31      "ctrl-x ]": "editor::MoveToEnd",
32      "ctrl-x [": "editor::MoveToBeginning",
33      "ctrl-l": "editor::ScrollCursorCenterTopBottom",
34      "ctrl-s": "buffer_search::Deploy",
35      "ctrl-x ctrl-f": "file_finder::Toggle",
36      "ctrl-shift-r": "editor::Rename"
37    }
38  },
39  {
40    "context": "Workspace",
41    "bindings": {
42      "ctrl-x k": "pane::CloseActiveItem",
43      "ctrl-x ctrl-c": "workspace::CloseWindow",
44      "ctrl-x o": "workspace::ActivateNextPane",
45      "ctrl-x b": "tab_switcher::Toggle",
46      "ctrl-x 0": "pane::CloseActiveItem",
47      "ctrl-x 1": "pane::CloseInactiveItems",
48      "ctrl-x 2": "pane::SplitVertical",
49      "ctrl-x ctrl-f": "file_finder::Toggle",
50      "ctrl-x ctrl-s": "workspace::Save",
51      "ctrl-x ctrl-w": "workspace::SaveAs",
52      "ctrl-x s": "workspace::SaveAll",
53      "shift shift": "file_finder::Toggle"
54    }
55  },
56  {
57    "context": "Pane",
58    "bindings": {
59      "ctrl-alt-left": "pane::GoBack",
60      "ctrl-alt-right": "pane::GoForward"
61    }
62  }
63]