From f252d9cf676f8ef7859b0a2cae3c9fd458500f49 Mon Sep 17 00:00:00 2001 From: Dom Christie Date: Fri, 3 May 2024 10:29:47 +0100 Subject: [PATCH] Fix alt-shift-(left|right) behaviour (#11292) Not sure what the etiquette is here, but in the interest of fixing #10242, I've re-implemented @jish's PR https://github.com/zed-industries/zed/pull/10535 and have signed the CLA Release Notes: - Fixed `alt-shift-left` and `alt-shift-right` in the Textmate default keybindings. ([#10242](https://github.com/zed-industries/zed/issues/10242)) TextMate keymap uses default option shift arrow selection --- assets/keymaps/textmate.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/keymaps/textmate.json b/assets/keymaps/textmate.json index 3926e4e942..c3947dc3ce 100644 --- a/assets/keymaps/textmate.json +++ b/assets/keymaps/textmate.json @@ -39,13 +39,13 @@ "cmd-shift-left": "editor::SelectToBeginningOfLine", "cmd-shift-right": "editor::SelectToEndOfLine", "alt-shift-left": [ - "editor::SelectToBeginningOfLine", + "editor::SelectToPreviousWordStart", { "stop_at_soft_wraps": true } ], "alt-shift-right": [ - "editor::SelectToEndOfLine", + "editor::SelectToNextWordEnd", { "stop_at_soft_wraps": true }