From bd71e9192c7e041214b801df04e7d5744399c4b5 Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Tue, 13 Aug 2024 15:12:20 -0400 Subject: [PATCH] Match VSCode behavior for ctrl-a/ctrl-e on MacOS (#15981) - Make `ctrl-a` and `ctrl-e` ignore soft_wraps on MacOS, matching the behavior of VSCode. - Unchanged: `home`, `end`, `cmd-left`, `cmd-right` respect softwrap (both in Zed and VSCode). --- assets/keymaps/default-macos.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/keymaps/default-macos.json b/assets/keymaps/default-macos.json index f2c417157bbe0..2f85973dfd688 100644 --- a/assets/keymaps/default-macos.json +++ b/assets/keymaps/default-macos.json @@ -89,9 +89,9 @@ "alt-right": "editor::MoveToNextWordEnd", "alt-f": "editor::MoveToNextWordEnd", "cmd-left": "editor::MoveToBeginningOfLine", - "ctrl-a": "editor::MoveToBeginningOfLine", + "ctrl-a": ["editor::MoveToBeginningOfLine", { "stop_at_soft_wraps": false }], "cmd-right": "editor::MoveToEndOfLine", - "ctrl-e": "editor::MoveToEndOfLine", + "ctrl-e": ["editor::MoveToEndOfLine", { "stop_at_soft_wraps": false }], "cmd-up": "editor::MoveToBeginning", "cmd-down": "editor::MoveToEnd", "shift-up": "editor::SelectUp",