From 0cf6259fecf57fcb0c5c6f0a098f4e7507e8ffaf Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Tue, 11 Mar 2025 16:29:02 -0400 Subject: [PATCH] Make nano save (`ctrl-o`) work by-default in terminal (linux) (#26479) Closes: https://github.com/zed-industries/zed/issues/15770 Release Notes: - Make nano save (`ctrl-o`) work by-default in terminal (linux) --- assets/keymaps/default-linux.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/assets/keymaps/default-linux.json b/assets/keymaps/default-linux.json index 8d01883788997ecc72fb3fc7dbc6ab7a812bd2a5..319ffd2b813f248db2077ca4d2907f94deadbee7 100644 --- a/assets/keymaps/default-linux.json +++ b/assets/keymaps/default-linux.json @@ -861,21 +861,22 @@ "alt-b": ["terminal::SendText", "\u001bb"], "alt-f": ["terminal::SendText", "\u001bf"], // Overrides for conflicting keybindings + "ctrl-b": ["terminal::SendKeystroke", "ctrl-b"], + "ctrl-c": ["terminal::SendKeystroke", "ctrl-c"], + "ctrl-e": ["terminal::SendKeystroke", "ctrl-e"], + "ctrl-o": ["terminal::SendKeystroke", "ctrl-o"], "ctrl-w": ["terminal::SendKeystroke", "ctrl-w"], "ctrl-shift-a": "editor::SelectAll", "find": "buffer_search::Deploy", "ctrl-shift-f": "buffer_search::Deploy", "ctrl-shift-l": "terminal::Clear", "ctrl-shift-w": "pane::CloseActiveItem", - "ctrl-e": ["terminal::SendKeystroke", "ctrl-e"], "up": ["terminal::SendKeystroke", "up"], "pageup": ["terminal::SendKeystroke", "pageup"], "down": ["terminal::SendKeystroke", "down"], "pagedown": ["terminal::SendKeystroke", "pagedown"], "escape": ["terminal::SendKeystroke", "escape"], "enter": ["terminal::SendKeystroke", "enter"], - "ctrl-b": ["terminal::SendKeystroke", "ctrl-b"], - "ctrl-c": ["terminal::SendKeystroke", "ctrl-c"], "shift-pageup": "terminal::ScrollPageUp", "shift-pagedown": "terminal::ScrollPageDown", "shift-up": "terminal::ScrollLineUp",