cursor.json

 1[
 2  // Cursor for MacOS. See: https://docs.cursor.com/kbd
 3  {
 4    "context": "Workspace",
 5    "use_key_equivalents": true,
 6    "bindings": {
 7      "cmd-i": "agent::ToggleFocus",
 8      "cmd-shift-i": "agent::ToggleFocus",
 9      "cmd-l": "agent::ToggleFocus",
10      "cmd-shift-l": "agent::ToggleFocus",
11      "cmd-shift-j": "agent::OpenSettings",
12    },
13  },
14  {
15    "context": "Editor && mode == full",
16    "use_key_equivalents": true,
17    "bindings": {
18      "cmd-i": "agent::ToggleFocus",
19      "cmd-shift-i": "agent::ToggleFocus",
20      "cmd-shift-l": "agent::AddSelectionToThread", // In cursor uses "Ask" mode
21      "cmd-l": "agent::AddSelectionToThread", // In cursor uses "Agent" mode
22      "cmd-k": "assistant::InlineAssist",
23    },
24  },
25  {
26    "context": "InlineAssistant > Editor",
27    "use_key_equivalents": true,
28    "bindings": {
29      "cmd-shift-backspace": "editor::Cancel",
30      "cmd-enter": "menu::Confirm",
31      // "alt-enter": // Quick Question
32      // "cmd-shift-enter": // Full File Context
33      // "cmd-shift-k": // Toggle input focus (editor <> inline assist)
34    },
35  },
36  {
37    "context": "AgentPanel || (MessageEditor > Editor)",
38    "use_key_equivalents": true,
39    "bindings": {
40      "cmd-i": "workspace::ToggleRightDock",
41      "cmd-shift-i": "workspace::ToggleRightDock",
42      "cmd-l": "workspace::ToggleRightDock",
43      "cmd-shift-l": "workspace::ToggleRightDock",
44      "cmd-w": "workspace::ToggleRightDock", // technically should close chat
45      "cmd-.": "agent::ToggleProfileSelector",
46      "cmd-/": "agent::ToggleModelSelector",
47      "cmd-shift-backspace": "editor::Cancel",
48      "cmd-r": "agent::NewThread",
49      "cmd-shift-v": "editor::Paste",
50      // "escape": "agent::ToggleFocus"
51      ///// Enable when Zed supports multiple thread tabs
52      // "cmd-t": // new thread tab
53      // "cmd-[": // next thread tab
54      // "cmd-]": // next thread tab
55      ///// Enable if Zed adds support for keyboard navigation of thread elements
56      // "tab": // cycle to next message
57      // "shift-tab": // cycle to previous message
58    },
59  },
60  {
61    "context": "Editor && editor_agent_diff",
62    "use_key_equivalents": true,
63    "bindings": {
64      "cmd-enter": "agent::KeepAll",
65      "cmd-backspace": "agent::RejectAll",
66    },
67  },
68  {
69    "context": "Editor && mode == full && edit_prediction",
70    "use_key_equivalents": true,
71    "bindings": {
72      "cmd-right": "editor::AcceptNextWordEditPrediction",
73      "cmd-down": "editor::AcceptNextLineEditPrediction",
74    },
75  },
76  {
77    "context": "Terminal",
78    "use_key_equivalents": true,
79    "bindings": {
80      "cmd-k": "assistant::InlineAssist",
81    },
82  },
83]