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.

Make `ctrl-l` the default vim binding for AcceptEditPrediction (#24599)

Michael Sloanc5fe5f11396e
diff --git a/assets/keymaps/vim.json b/assets/keymaps/vim.json
index 7e202c2448b..5f2fb2b247a 100644
--- a/assets/keymaps/vim.json
+++ b/assets/keymaps/vim.json
@@ -698,7 +698,15 @@
{
"context": "edit_prediction && !edit_prediction_requires_modifier",
"bindings": {
+ // "tab" is bound in the vim bindings above so that default editor behavior isn't used, so
+ // need to rebind it even though this is in the base keymap.
"tab": "editor::AcceptEditPrediction"
}
+ },
+ {
+ "context": "edit_prediction",
+ "bindings": {
+ "ctrl-l": "editor::AcceptEditPrediction"
+ }
}
]