summaryrefslogtreecommitdiff
path: root/.config/zed/keymap.json
blob: e6fe85e28c794f22b9d8816b1b3a06801c730a49 (plain)
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
// Zed keymap
//
// For information on binding keys, see the Zed
// documentation: https://zed.dev/docs/key-bindings
//
// To see the default key bindings run `zed: open default keymap`
// from the command palette.
[
  {
    "context": "Workspace",
    "bindings": {
      // "shift shift": "file_finder::Toggle"
    },
  },
  {
    "context": "Editor && vim_mode == insert",
    "bindings": {
      // "j k": "vim::NormalBefore"
    },
  },
  {
    "context": "Workspace",
    "bindings": {
      "cmd-b r": "task::Spawn"
    }
  },
  {
    "context": "Workspace",
    "unbind": {
      "shift-f10": "task::Spawn"
    }
  },
  {
    "context": "Editor",
    "bindings": {
      "cmd-r r": "editor::Rename"
    }
  },
  {
    "context": "Editor",
    "unbind": {
      "shift-f6": "editor::Rename"
    }
  },
  {
    "context": "ProjectPanel",
    "bindings": {
      "cmd-r r": "project_panel::Rename"
    }
  },
  {
    "context": "ProjectPanel",
    "unbind": {
      "shift-f6": "project_panel::Rename"
    }
  },
  {
    "context": "Workspace",
    "unbind": {
      "cmd-r": "workspace::ToggleRightDock"
    }
  },
  {
    "context": "Editor && mode == full",
    "unbind": {
      "cmd-r": [
        "buffer_search::Deploy",
        {
          "replace_enabled": true
        }
      ]
    }
  }
]