Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Bind editor::OpenSelectionsInMultibuffer in `full` editors only (#23832)

Kirill Bulatov07161d65d0e8
diff --git a/assets/keymaps/default-linux.json b/assets/keymaps/default-linux.json
index 2fc6c3c344d..c11a54a1d48 100644
--- a/assets/keymaps/default-linux.json
+++ b/assets/keymaps/default-linux.json
@@ -122,8 +122,7 @@
"ctrl-i": "editor::ShowSignatureHelp",
"alt-g b": "editor::ToggleGitBlame",
"menu": "editor::OpenContextMenu",
- "shift-f10": "editor::OpenContextMenu",
- "alt-enter": "editor::OpenSelectionsInMultibuffer"
+ "shift-f10": "editor::OpenContextMenu"
}
},
{
@@ -141,7 +140,8 @@
// "cmd-e": ["buffer_search::Deploy", { "focus": false }],
"ctrl->": "assistant::QuoteSelection",
"ctrl-<": "assistant::InsertIntoEditor",
- "ctrl-alt-e": "editor::SelectEnclosingSymbol"
+ "ctrl-alt-e": "editor::SelectEnclosingSymbol",
+ "alt-enter": "editor::OpenSelectionsInMultibuffer"
}
},
{
diff --git a/assets/keymaps/default-macos.json b/assets/keymaps/default-macos.json
index 2fbd698858c..a4e7981c55c 100644
--- a/assets/keymaps/default-macos.json
+++ b/assets/keymaps/default-macos.json
@@ -132,8 +132,7 @@
"cmd-alt-g b": "editor::ToggleGitBlame",
"cmd-i": "editor::ShowSignatureHelp",
"ctrl-f12": "editor::GoToDeclaration",
- "alt-ctrl-f12": "editor::GoToDeclarationSplit",
- "alt-enter": "editor::OpenSelectionsInMultibuffer"
+ "alt-ctrl-f12": "editor::GoToDeclarationSplit"
}
},
{
@@ -151,7 +150,8 @@
"cmd-e": ["buffer_search::Deploy", { "focus": false }],
"cmd->": "assistant::QuoteSelection",
"cmd-<": "assistant::InsertIntoEditor",
- "cmd-alt-e": "editor::SelectEnclosingSymbol"
+ "cmd-alt-e": "editor::SelectEnclosingSymbol",
+ "alt-enter": "editor::OpenSelectionsInMultibuffer"
}
},
{