Skip to content

Commit d8f95ce

Browse files
MrSubidubitidely
authored andcommitted
Swap NewlineBelow and NewlineAbove bindings for default linux keymap (zed-industries#36939)
Closes zed-industries#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.
1 parent 9f640ab commit d8f95ce

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

assets/keymaps/default-linux.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@
130130
"bindings": {
131131
"shift-enter": "editor::Newline",
132132
"enter": "editor::Newline",
133-
"ctrl-enter": "editor::NewlineAbove",
134-
"ctrl-shift-enter": "editor::NewlineBelow",
133+
"ctrl-enter": "editor::NewlineBelow",
134+
"ctrl-shift-enter": "editor::NewlineAbove",
135135
"ctrl-k ctrl-z": "editor::ToggleSoftWrap",
136136
"ctrl-k z": "editor::ToggleSoftWrap",
137137
"find": "buffer_search::Deploy",

assets/keymaps/default-windows.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@
134134
"bindings": {
135135
"shift-enter": "editor::Newline",
136136
"enter": "editor::Newline",
137-
"ctrl-enter": "editor::NewlineAbove",
138-
"ctrl-shift-enter": "editor::NewlineBelow",
137+
"ctrl-enter": "editor::NewlineBelow",
138+
"ctrl-shift-enter": "editor::NewlineAbove",
139139
"ctrl-k ctrl-z": "editor::ToggleSoftWrap",
140140
"ctrl-k z": "editor::ToggleSoftWrap",
141141
"find": "buffer_search::Deploy",

0 commit comments

Comments
 (0)