<img width="1128" height="953" alt="image" src="https://github.com/user-attachments/assets/b2017c0a-e25a-49d7-9342-d074014d085c" /> Closes #14203 Release Notes: - Initial Call Hierarchy support in Zed --------- Co-authored-by: Alexey Olshanskiy <gh@aohoy.dev> Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: Kirill Bulatov <kirill@zed.dev>
91 lines
2.8 KiB
JSON
91 lines
2.8 KiB
JSON
[
|
|
// Cursor for MacOS. See: https://docs.cursor.com/kbd
|
|
{
|
|
"context": "Workspace",
|
|
"use_key_equivalents": true,
|
|
"bindings": {
|
|
"ctrl-i": "agent::ToggleFocus",
|
|
"ctrl-shift-i": "agent::ToggleFocus",
|
|
"ctrl-l": "agent::ToggleFocus",
|
|
"ctrl-shift-l": "agent::ToggleFocus",
|
|
"ctrl-shift-j": "agent::OpenSettings",
|
|
},
|
|
},
|
|
{
|
|
"context": "Editor && mode == full",
|
|
"use_key_equivalents": true,
|
|
"bindings": {
|
|
"ctrl-i": "agent::ToggleFocus",
|
|
"ctrl-shift-i": "agent::ToggleFocus",
|
|
"ctrl-shift-l": "agent::AddSelectionToThread", // In cursor uses "Ask" mode
|
|
"ctrl-l": "agent::AddSelectionToThread", // In cursor uses "Agent" mode
|
|
"ctrl-k": "assistant::InlineAssist",
|
|
"shift-alt-h": "call_hierarchy::ShowIncomingCalls",
|
|
},
|
|
},
|
|
{
|
|
"context": "InlineAssistant > Editor",
|
|
"use_key_equivalents": true,
|
|
"bindings": {
|
|
"ctrl-shift-backspace": "editor::Cancel",
|
|
// "alt-enter": // Quick Question
|
|
// "ctrl-shift-enter": // Full File Context
|
|
// "ctrl-shift-k": // Toggle input focus (editor <> inline assist)
|
|
},
|
|
},
|
|
{
|
|
"context": "AgentPanel || (MessageEditor > Editor)",
|
|
"use_key_equivalents": true,
|
|
"bindings": {
|
|
"ctrl-i": "workspace::ToggleRightDock",
|
|
"ctrl-shift-i": "workspace::ToggleRightDock",
|
|
"ctrl-l": "workspace::ToggleRightDock",
|
|
"ctrl-shift-l": "workspace::ToggleRightDock",
|
|
"ctrl-w": "workspace::ToggleRightDock", // technically should close chat
|
|
"ctrl-.": "agent::ToggleProfileSelector",
|
|
"ctrl-/": "agent::ToggleModelSelector",
|
|
"ctrl-shift-backspace": "editor::Cancel",
|
|
"ctrl-r": "agent::NewThread",
|
|
"ctrl-shift-v": "editor::Paste",
|
|
// "escape": "agent::ToggleFocus"
|
|
///// Enable when Zed supports multiple thread tabs
|
|
// "ctrl-t": // new thread tab
|
|
// "ctrl-[": // next thread tab
|
|
// "ctrl-]": // next thread tab
|
|
///// Enable if Zed adds support for keyboard navigation of thread elements
|
|
// "tab": // cycle to next message
|
|
// "shift-tab": // cycle to previous message
|
|
},
|
|
},
|
|
{
|
|
"context": "Editor && editor_agent_diff",
|
|
"use_key_equivalents": true,
|
|
"bindings": {
|
|
"ctrl-enter": "agent::KeepAll",
|
|
"ctrl-backspace": "agent::RejectAll",
|
|
},
|
|
},
|
|
{
|
|
"context": "Editor && mode == full && edit_prediction",
|
|
"use_key_equivalents": true,
|
|
"bindings": {
|
|
"ctrl-right": "editor::AcceptNextWordEditPrediction",
|
|
"ctrl-down": "editor::AcceptNextLineEditPrediction",
|
|
},
|
|
},
|
|
{
|
|
"context": "Terminal",
|
|
"use_key_equivalents": true,
|
|
"bindings": {
|
|
"ctrl-k": "assistant::InlineAssist",
|
|
},
|
|
},
|
|
{
|
|
"context": "CallHierarchyPicker > Picker > Editor",
|
|
"use_key_equivalents": true,
|
|
"bindings": {
|
|
"shift-alt-h": "call_hierarchy::ToggleDirection",
|
|
},
|
|
},
|
|
]
|