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.

Replace terminal `SendText` ctrl keybinds with `SendKeystroke` (#51728)

Justin Su5c5727c90a56
diff --git a/assets/keymaps/default-macos.json b/assets/keymaps/default-macos.json
index 23953b9d45c..7edfd53a73b 100644
--- a/assets/keymaps/default-macos.json
+++ b/assets/keymaps/default-macos.json
@@ -1268,11 +1268,11 @@
"ctrl-enter": "assistant::InlineAssist",
"ctrl-_": null, // emacs undo
// Some nice conveniences
- "cmd-backspace": ["terminal::SendText", "\u0015"], // ctrl-u: clear line
+ "cmd-backspace": ["terminal::SendKeystroke", "ctrl-u"], // clear line
"alt-delete": ["terminal::SendText", "\u001bd"], // alt-d: delete word forward
- "cmd-delete": ["terminal::SendText", "\u000b"], // ctrl-k: delete to end of line
- "cmd-right": ["terminal::SendText", "\u0005"],
- "cmd-left": ["terminal::SendText", "\u0001"],
+ "cmd-delete": ["terminal::SendKeystroke", "ctrl-k"], // delete to end of line
+ "cmd-right": ["terminal::SendKeystroke", "ctrl-e"],
+ "cmd-left": ["terminal::SendKeystroke", "ctrl-a"],
// Terminal.app compatibility
"alt-left": ["terminal::SendText", "\u001bb"],
"alt-right": ["terminal::SendText", "\u001bf"],