From 6b92e0b5da4b702097482ea098851872ea565f5b Mon Sep 17 00:00:00 2001 From: Cole Miller Date: Sat, 21 Dec 2024 14:03:58 -0500 Subject: [PATCH] In terminal context, open new terminals with `cmd-n` instead of new files (#22253) Release Notes: - In terminal context, `cmd-n` and `ctrl-n` now open a new terminal instead of a new file --- assets/keymaps/default-macos.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/keymaps/default-macos.json b/assets/keymaps/default-macos.json index 4d9c196e750ed..041b75f0823f7 100644 --- a/assets/keymaps/default-macos.json +++ b/assets/keymaps/default-macos.json @@ -448,7 +448,6 @@ "cmd-s": "workspace::Save", "cmd-k s": "workspace::SaveWithoutFormat", "cmd-shift-s": "workspace::SaveAs", - "cmd-n": "workspace::NewFile", "cmd-shift-n": "workspace::NewWindow", "ctrl-`": "terminal_panel::ToggleFocus", "cmd-1": ["workspace::ActivatePane", 0], @@ -495,6 +494,7 @@ "context": "Workspace && !Terminal", "use_key_equivalents": true, "bindings": { + "cmd-n": "workspace::NewFile", "cmd-shift-r": "task::Spawn", "cmd-alt-r": "task::Rerun", "ctrl-alt-shift-r": ["task::Spawn", { "reveal_target": "center" }] @@ -761,6 +761,7 @@ "cmd-v": "terminal::Paste", "cmd-a": "editor::SelectAll", "cmd-k": "terminal::Clear", + "cmd-n": "workspace::NewTerminal", "ctrl-enter": "assistant::InlineAssist", // Some nice conveniences "cmd-backspace": ["terminal::SendText", "\u0015"],