zed/keymap.json 2.3 K raw
1
[
2
  {
3
    "context": "Dock || Terminal || Editor || ProjectPanel",
4
    "bindings": {
5
      "ctrl-h": "workspace::ActivatePaneLeft",
6
      "ctrl-l": "workspace::ActivatePaneRight",
7
      "ctrl-k": "workspace::ActivatePaneUp",
8
      "ctrl-j": "workspace::ActivatePaneDown"
9
    }
10
  },
11
  {
12
    "context": "Editor && VimControl && !VimWaiting && !menu",
13
    "bindings": {
14
      "space b": "editor::ToggleGitBlame",
15
      "shift-k": "editor::Hover",
16
      "space l f": "editor::Format",
17
      "space d": "diagnostics::Deploy",
18
      "space f f": "file_finder::Toggle",
19
      "space o": "tab_switcher::Toggle",
20
      "space e": "workspace::ToggleLeftDock",
21
      "space /": "workspace::NewSearch",
22
      "n": "search::SelectNextMatch",
23
      "shift-n": "search::SelectPreviousMatch",
24
      "space t": "workspace::NewCenterTerminal",
25
      "g b": "editor::ToggleComments",
26
      "+ +": "workspace::Save",
27
      "space c": "pane::CloseActiveItem"
28
    }
29
  },
30
  {
31
    "context": "vim_mode == insert",
32
    "bindings": {
33
      "ctrl-k": "editor::ContextMenuPrevious",
34
      "ctrl-j": "editor::ContextMenuNext"
35
    }
36
  },
37
  {
38
    "context": "Editor && vim_mode == visual && !VimWaiting && !VimObject",
39
    "bindings": {
40
      "shift-j": "editor::MoveLineDown",
41
      "shift-k": "editor::MoveLineUp"
42
    }
43
  },
44
  {
45
    "context": "TabSwitcher",
46
    "bindings": {
47
      "ctrl-k": "menu::SelectPrevious",
48
      "ctrl-j": "menu::SelectNext"
49
    }
50
  },
51
  {
52
    "context": "FileFinder",
53
    "bindings": {
54
      "ctrl-k": "menu::SelectPrevious",
55
      "ctrl-j": "menu::SelectNext"
56
    }
57
  },
58
  {
59
    "context": "CommandPalette",
60
    "bindings": {
61
      "ctrl-k": "menu::SelectPrevious",
62
      "ctrl-j": "menu::SelectNext"
63
    }
64
  },
65
  {
66
    "context": "Workspace",
67
    "bindings": {
68
      "ctrl-z": "workspace::ToggleZoom",
69
      "cmd-k": [
70
        "projects::OpenRecent",
71
        {
72
          "create_new_window": false
73
        }
74
      ],
75
      "ctrl-x": "tab_switcher::CloseSelectedItem"
76
    }
77
  },
78
  {
79
    "context": "Terminal",
80
    "bindings": {
81
      "cmd-t": "workspace::NewTerminal"
82
    }
83
  },
84
  {
85
    "context": "EmptyPane || SharedScreen",
86
    "bindings": {
87
      // put key-bindings here (in addition to above) if you want them to
88
      // work when no editor exists
89
      "space f": "file_finder::Toggle"
90
    }
91
  }
92
]