From b9570218b6459dda546ceb2d12babf24ade817b7 Mon Sep 17 00:00:00 2001 From: pantheraleo-7 <159872817+pantheraleo-7@users.noreply.github.com> Date: Thu, 25 Jul 2024 07:32:24 +0530 Subject: [PATCH] Remove `!jupyter` context for `cmd-enter` (`ctrl-enter` for linux) key binding (#15133) Since zed has done away with `cmd-enter` binding for `repl::Run` [#15026](https://github.com/zed-industries/zed/pull/15026), I think this is no longer needed. Release Notes: - N/A --- assets/keymaps/default-linux.json | 7 +------ assets/keymaps/default-macos.json | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/assets/keymaps/default-linux.json b/assets/keymaps/default-linux.json index d21680bdac..dcb18a4c2b 100644 --- a/assets/keymaps/default-linux.json +++ b/assets/keymaps/default-linux.json @@ -106,6 +106,7 @@ "bindings": { "enter": "editor::Newline", "shift-enter": "editor::Newline", + "ctrl-enter": "editor::NewlineAbove", "ctrl-shift-enter": "editor::NewlineBelow", "alt-z": "editor::ToggleSoftWrap", "ctrl-f": "buffer_search::Deploy", @@ -116,12 +117,6 @@ "ctrl-alt-e": "editor::SelectEnclosingSymbol" } }, - { - "context": "Editor && mode == full && !jupyter", - "bindings": { - "ctrl-enter": "editor::NewlineAbove" - } - }, { "context": "Editor && mode == full && inline_completion", "bindings": { diff --git a/assets/keymaps/default-macos.json b/assets/keymaps/default-macos.json index 758f518aa3..bfbca8fb56 100644 --- a/assets/keymaps/default-macos.json +++ b/assets/keymaps/default-macos.json @@ -135,6 +135,7 @@ "bindings": { "enter": "editor::Newline", "shift-enter": "editor::Newline", + "cmd-enter": "editor::NewlineBelow", "cmd-shift-enter": "editor::NewlineAbove", "alt-z": "editor::ToggleSoftWrap", "cmd-f": "buffer_search::Deploy", @@ -146,12 +147,6 @@ "cmd-alt-e": "editor::SelectEnclosingSymbol" } }, - { - "context": "Editor && mode == full && !jupyter", - "bindings": { - "cmd-enter": "editor::NewlineBelow" - } - }, { "context": "Editor && mode == full && inline_completion", "bindings": {