From a03897012e9c22709f26597ce96e8bf4caf8974e Mon Sep 17 00:00:00 2001 From: Finn Evers Date: Wed, 27 Aug 2025 09:06:33 +0200 Subject: [PATCH] Swap `NewlineBelow` and `NewlineAbove` bindings for default linux keymap (#36939) Closes https://github.com/zed-industries/zed/issues/33725 The default bindings for the `editor::NewlineAbove` and `editor::NewlineBelow` actions in the default keymap were accidentally swapped some time ago. This causes confusion, as normally these are the other way around. This PR fixes this by swapping these back, which also matches what [VSCode does by default](https://code.visualstudio.com/shortcuts/keyboard-shortcuts-linux.pdf). Release Notes: - Swapped the default bindings for `editor::NewlineBelow` and `editor::NewlineAbove` for Linux and Windows to align more with other editors. --- assets/keymaps/default-linux.json | 4 ++-- assets/keymaps/default-windows.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/keymaps/default-linux.json b/assets/keymaps/default-linux.json index 3cca560c0088a5be19ea42aeb4753db4d158bf4d..2610f9b7051cbce74ce6df13d49699c74e870395 100644 --- a/assets/keymaps/default-linux.json +++ b/assets/keymaps/default-linux.json @@ -130,8 +130,8 @@ "bindings": { "shift-enter": "editor::Newline", "enter": "editor::Newline", - "ctrl-enter": "editor::NewlineAbove", - "ctrl-shift-enter": "editor::NewlineBelow", + "ctrl-enter": "editor::NewlineBelow", + "ctrl-shift-enter": "editor::NewlineAbove", "ctrl-k ctrl-z": "editor::ToggleSoftWrap", "ctrl-k z": "editor::ToggleSoftWrap", "find": "buffer_search::Deploy", diff --git a/assets/keymaps/default-windows.json b/assets/keymaps/default-windows.json index c7a6c3149ccab86d3efcf8f5db94e0b40be6a3c0..dbd377409f4423dd12bac06b651efd079772dbb5 100644 --- a/assets/keymaps/default-windows.json +++ b/assets/keymaps/default-windows.json @@ -134,8 +134,8 @@ "bindings": { "shift-enter": "editor::Newline", "enter": "editor::Newline", - "ctrl-enter": "editor::NewlineAbove", - "ctrl-shift-enter": "editor::NewlineBelow", + "ctrl-enter": "editor::NewlineBelow", + "ctrl-shift-enter": "editor::NewlineAbove", "ctrl-k ctrl-z": "editor::ToggleSoftWrap", "ctrl-k z": "editor::ToggleSoftWrap", "find": "buffer_search::Deploy",