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.

macos: Add mappings for alt-delete and cmd-delete (#34493)

Peter Tripp2a9a82d75748
diff --git a/assets/keymaps/default-macos.json b/assets/keymaps/default-macos.json
index 7af79bdeea1..1eece316992 100644
--- a/assets/keymaps/default-macos.json
+++ b/assets/keymaps/default-macos.json
@@ -1105,7 +1105,9 @@
"ctrl-enter": "assistant::InlineAssist",
"ctrl-_": null, // emacs undo
// Some nice conveniences
- "cmd-backspace": ["terminal::SendText", "\u0015"],
+ "cmd-backspace": ["terminal::SendText", "\u0015"], // 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"],
// Terminal.app compatibility