From 83513bab59c9b387b80211f44f392ae9dc2bcad7 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Sat, 22 Feb 2025 10:08:16 +0200 Subject: [PATCH] Emphasize defaults for line movement actions (#25378) Closes https://github.com/zed-industries/zed/issues/25372 Release Notes: - N/A --- assets/keymaps/default-linux.json | 4 ++-- assets/keymaps/default-macos.json | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/assets/keymaps/default-linux.json b/assets/keymaps/default-linux.json index 83caf791d8..1eb646c311 100644 --- a/assets/keymaps/default-linux.json +++ b/assets/keymaps/default-linux.json @@ -84,12 +84,12 @@ "pageup": "editor::MovePageUp", "alt-pageup": "editor::PageUp", "shift-pageup": "editor::SelectPageUp", - "home": "editor::MoveToBeginningOfLine", + "home": ["editor::MoveToBeginningOfLine", { "stop_at_soft_wraps": true }], "down": "editor::MoveDown", "pagedown": "editor::MovePageDown", "alt-pagedown": "editor::PageDown", "shift-pagedown": "editor::SelectPageDown", - "end": "editor::MoveToEndOfLine", + "end": ["editor::MoveToEndOfLine", { "stop_at_soft_wraps": true }], "left": "editor::MoveLeft", "right": "editor::MoveRight", "ctrl-left": "editor::MoveToPreviousWordStart", diff --git a/assets/keymaps/default-macos.json b/assets/keymaps/default-macos.json index b1e23423a1..9e59a502ac 100644 --- a/assets/keymaps/default-macos.json +++ b/assets/keymaps/default-macos.json @@ -91,12 +91,12 @@ "ctrl-l": "editor::ScrollCursorCenter", "alt-left": "editor::MoveToPreviousWordStart", "alt-right": "editor::MoveToNextWordEnd", - "cmd-left": "editor::MoveToBeginningOfLine", - "ctrl-a": "editor::MoveToBeginningOfLine", - "home": "editor::MoveToBeginningOfLine", - "cmd-right": "editor::MoveToEndOfLine", - "ctrl-e": "editor::MoveToEndOfLine", - "end": "editor::MoveToEndOfLine", + "cmd-left": ["editor::MoveToBeginningOfLine", { "stop_at_soft_wraps": true }], + "ctrl-a": ["editor::MoveToBeginningOfLine", { "stop_at_soft_wraps": true }], + "home": ["editor::MoveToBeginningOfLine", { "stop_at_soft_wraps": true }], + "cmd-right": ["editor::MoveToEndOfLine", { "stop_at_soft_wraps": true }], + "ctrl-e": ["editor::MoveToEndOfLine", { "stop_at_soft_wraps": true }], + "end": ["editor::MoveToEndOfLine", { "stop_at_soft_wraps": true }], "cmd-up": "editor::MoveToStartOfExcerpt", "cmd-down": "editor::MoveToEndOfExcerpt", "cmd-home": "editor::MoveToBeginning", // Typed via `cmd-fn-left`