From 24237d2df55be6cd9fcf801d66eabaa45d22cf86 Mon Sep 17 00:00:00 2001 From: mTvare Date: Wed, 22 Jul 2026 08:10:22 +0000 Subject: [PATCH] recent_projects: Fix open folder keybinding (#61305) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Objective Closes #58986 This PR fixes `Ctrl-K Ctrl-O` opening a file picker while the Recent Projects picker is focused. The keymaps globally bind `Ctrl-O` to `workspace::OpenFiles` and `Ctrl-K Ctrl-O` to `workspace::Open` The Recent Projects context also binds `Ctrl-K` to toggle its actions menu. The more specific binding ate `Ctrl-K` stopping the global `Ctrl-K Ctrl-O` bind occuring. ## Solution Add a `RecentProjects`-specific `Ctrl-K Ctrl-O` binding to `workspace::Open` after the existing contextual `Ctrl-K` binding. This matches the action associated with “Open Local Folders,” including its multiple-selection and open-mode behavior. macOS is unchanged because its primary `Cmd-O` shortcut already maps to `workspace::Open`. ## Testing Try #58986, then this. ## Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content adheres to Zed's UI standards ([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) and [icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md) guidelines) - [ ] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable Release Notes: - Fixed `Ctrl-K Ctrl-O` opening a file picker instead of the local folder picker from Recent Projects. --- assets/keymaps/default-linux.json | 1 + assets/keymaps/default-windows.json | 1 + 2 files changed, 2 insertions(+) diff --git a/assets/keymaps/default-linux.json b/assets/keymaps/default-linux.json index 5b0476282f..2b911f35c5 100644 --- a/assets/keymaps/default-linux.json +++ b/assets/keymaps/default-linux.json @@ -1211,6 +1211,7 @@ "context": "RecentProjects || (RecentProjects > Picker > Editor)", "bindings": { "ctrl-k": "recent_projects::ToggleActionsMenu", + "ctrl-k ctrl-o": "workspace::Open", "ctrl-shift-a": "workspace::AddFolderToProject", "shift-backspace": "recent_projects::RemoveSelected", "ctrl-shift-enter": "recent_projects::AddToWorkspace", diff --git a/assets/keymaps/default-windows.json b/assets/keymaps/default-windows.json index c2723cf396..2dabb39312 100644 --- a/assets/keymaps/default-windows.json +++ b/assets/keymaps/default-windows.json @@ -1220,6 +1220,7 @@ "use_key_equivalents": true, "bindings": { "ctrl-k": "recent_projects::ToggleActionsMenu", + "ctrl-k ctrl-o": "workspace::Open", "ctrl-shift-a": "workspace::AddFolderToProject", "shift-backspace": "recent_projects::RemoveSelected", "ctrl-shift-enter": "recent_projects::AddToWorkspace",