From 5d140dee49e413eeefc7cc152f0934750cd9fcf9 Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Thu, 24 Apr 2025 13:17:35 +0000 Subject: [PATCH] Fix ctrl-enter opening inline-assistant in assistant text threads (#29313) Closes: https://github.com/zed-industries/zed/issues/24501 This has been broken for a while on linux (at least since Feb 8th!) for Assistant1. It is also broken for Text Threads in Assitant2 (on macos and linux). This should fix both. Potentially related: - https://github.com/zed-industries/zed/pull/29107 Release Notes: - Fix for `ctrl-enter` shortcut in Assistant text threads incorrectly opening inline assist instead of triggering Send. Co-authored-by: Conrad Irwin --- assets/keymaps/default-linux.json | 2 +- assets/keymaps/default-macos.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/keymaps/default-linux.json b/assets/keymaps/default-linux.json index 8fe928bfe60e3a7b967a4ecd011e2e86e03f4314..0399ae13bffa6ef43f3cb95623e5457c6a7afd5b 100644 --- a/assets/keymaps/default-linux.json +++ b/assets/keymaps/default-linux.json @@ -673,7 +673,7 @@ } }, { - "context": "Editor && mode == full", + "context": "!ContextEditor > Editor && mode == full", "bindings": { "alt-enter": "editor::OpenExcerpts", "shift-enter": "editor::ExpandExcerpts", diff --git a/assets/keymaps/default-macos.json b/assets/keymaps/default-macos.json index cb6e4f30dfac447d3c4ef2c27c91f52f9eb1d3b9..7388e5e34857f2d1117fa5f1b9dfaffdb301fb81 100644 --- a/assets/keymaps/default-macos.json +++ b/assets/keymaps/default-macos.json @@ -736,7 +736,7 @@ } }, { - "context": "Editor && mode == full", + "context": "!ContextEditor > Editor && mode == full", "use_key_equivalents": true, "bindings": { "alt-enter": "editor::OpenExcerpts",