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.

Fix default keybindings for `AcceptPartialEditPrediction` to work in subtle mode (#32193)

Michael Sloan8bd8435887b2
diff --git a/assets/keymaps/default-linux.json b/assets/keymaps/default-linux.json
index db1cd257ae1..e88cefa1576 100644
--- a/assets/keymaps/default-linux.json
+++ b/assets/keymaps/default-linux.json
@@ -153,8 +153,7 @@
"context": "Editor && mode == full && edit_prediction",
"bindings": {
"alt-]": "editor::NextEditPrediction",
- "alt-[": "editor::PreviousEditPrediction",
- "alt-right": "editor::AcceptPartialEditPrediction"
+ "alt-[": "editor::PreviousEditPrediction"
}
},
{
@@ -662,14 +661,16 @@
"bindings": {
"alt-tab": "editor::AcceptEditPrediction",
"alt-l": "editor::AcceptEditPrediction",
- "tab": "editor::AcceptEditPrediction"
+ "tab": "editor::AcceptEditPrediction",
+ "alt-right": "editor::AcceptPartialEditPrediction"
}
},
{
"context": "Editor && edit_prediction_conflict",
"bindings": {
"alt-tab": "editor::AcceptEditPrediction",
- "alt-l": "editor::AcceptEditPrediction"
+ "alt-l": "editor::AcceptEditPrediction",
+ "alt-right": "editor::AcceptPartialEditPrediction"
}
},
{
diff --git a/assets/keymaps/default-macos.json b/assets/keymaps/default-macos.json
index acf024a0a14..b21593654a6 100644
--- a/assets/keymaps/default-macos.json
+++ b/assets/keymaps/default-macos.json
@@ -181,8 +181,7 @@
"use_key_equivalents": true,
"bindings": {
"alt-tab": "editor::NextEditPrediction",
- "alt-shift-tab": "editor::PreviousEditPrediction",
- "ctrl-cmd-right": "editor::AcceptPartialEditPrediction"
+ "alt-shift-tab": "editor::PreviousEditPrediction"
}
},
{
@@ -719,14 +718,16 @@
"context": "Editor && edit_prediction",
"bindings": {
"alt-tab": "editor::AcceptEditPrediction",
- "tab": "editor::AcceptEditPrediction"
+ "tab": "editor::AcceptEditPrediction",
+ "ctrl-cmd-right": "editor::AcceptPartialEditPrediction"
}
},
{
"context": "Editor && edit_prediction_conflict",
"use_key_equivalents": true,
"bindings": {
- "alt-tab": "editor::AcceptEditPrediction"
+ "alt-tab": "editor::AcceptEditPrediction",
+ "ctrl-cmd-right": "editor::AcceptPartialEditPrediction"
}
},
{