Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Describe a way to disable individual keybindings (#17438)
Kirill Bulatovf7f8a5c5e07a
diff --git a/docs/src/key-bindings.md b/docs/src/key-bindings.mdindex f420e9127ca..627e3fc6c4d 100644--- a/docs/src/key-bindings.md+++ b/docs/src/key-bindings.md@@ -43,6 +43,21 @@ You can see more examples in Zed's [`default.json`](https://github.com/zed-indus_There are some key bindings that can't be overridden; we are working on an issue surrounding this._+### Disabling a key binding++Use `null` value to disable a key binding:++```json+[+ {+ "context": "Editor",+ "bindings": {+ "alt-\\": null+ }+ }+]+```+### Keybinding syntaxZed has the ability to match against not just a single keypress, but a sequence of keys typed in order. Each key in the `"bindings"` map is a sequence of keypresses separated with a space.