From 9850bf8022a78a3a09f1fc33e91340532217e110 Mon Sep 17 00:00:00 2001 From: Vladimir Varankin Date: Wed, 8 Jan 2025 17:01:21 +0100 Subject: [PATCH] Fix extend selection shortcuts in JetBrains keymap on macOS (#22814) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixups https://github.com/zed-industries/zed/pull/20199 As mentioned in [the post-merge comment][1], the original change was wrong. The JetBrains IDEs use (option) key on macOS for the shortcuts, which corresponds to the alt key in the keymap config. Release Notes: - Fixed extend/shrink selection in JetBrains keymap on macOS [1]: https://github.com/zed-industries/zed/pull/20199#issuecomment-2468136572 --- assets/keymaps/macos/jetbrains.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/keymaps/macos/jetbrains.json b/assets/keymaps/macos/jetbrains.json index 6399c343b41f927227d9f0d4748f2a2407f03819..e0f44caa0d207bc7537f1bea24b7313faca9c423 100644 --- a/assets/keymaps/macos/jetbrains.json +++ b/assets/keymaps/macos/jetbrains.json @@ -24,8 +24,8 @@ "ctrl-g": ["editor::SelectNext", { "replace_newest": false }], "ctrl-cmd-g": ["editor::SelectPrevious", { "replace_newest": false }], "cmd-/": ["editor::ToggleComments", { "advance_downwards": true }], - "cmd-up": "editor::SelectLargerSyntaxNode", - "cmd-down": "editor::SelectSmallerSyntaxNode", + "alt-up": "editor::SelectLargerSyntaxNode", + "alt-down": "editor::SelectSmallerSyntaxNode", "shift-alt-up": "editor::MoveLineUp", "shift-alt-down": "editor::MoveLineDown", "cmd-alt-l": "editor::Format",