From 32e9757a85277aba28190ca3de022f390d3ba831 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Mon, 21 Apr 2025 11:19:44 -0600 Subject: [PATCH] Fix ctrl-c in vim normal mode (#29167) This was broken when we added helix keybindings because we populate the menu's shortcut based on the "last" seen binding for an action ignoring context. Release Notes: - Fix `ctrl-c` in vim normal mode --- assets/keymaps/vim.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/assets/keymaps/vim.json b/assets/keymaps/vim.json index 24147048a81304809515226807d9ba892c30cc8d..6bb8e01ab044de0e0c8414aa338cb5dfa0068ff9 100644 --- a/assets/keymaps/vim.json +++ b/assets/keymaps/vim.json @@ -830,5 +830,13 @@ // and Windows. "alt-l": "editor::AcceptEditPrediction" } + }, + { + // Fixes https://github.com/zed-industries/zed/issues/29095 by ensuring that + // the last binding for editor::ToggleComments is not ctrl-c. + "context": "hack_to_fix_ctrl-c", + "bindings": { + "g c": "editor::ToggleComments" + } } ]