From d49271a1123b37b7825a956c0dd7dba08938b826 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Tue, 16 Apr 2024 15:47:30 +0200 Subject: [PATCH] Use project search action with the default keybinding in app menus (#10618) Fixes https://github.com/zed-industries/zed/issues/10611 Zed has `workspace::NewSearch` (without a default keybinding) and `workspace::DeploySearch` (with the default keybinding for its `DeploySearch::find()` form). Use the one with the keybinding, as it's the whole point of the menu. Release Notes: - Fixed "Find In Project" app menu item having no keybinding ([10611](https://github.com/zed-industries/zed/issues/10611)) --- crates/zed/src/zed/app_menus.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/zed/src/zed/app_menus.rs b/crates/zed/src/zed/app_menus.rs index 7d9f344612ef52fca51eecd1785006785ac234c0..7e0acebaff5f3c47694871d38fea2de4e250cfeb 100644 --- a/crates/zed/src/zed/app_menus.rs +++ b/crates/zed/src/zed/app_menus.rs @@ -68,7 +68,7 @@ pub fn app_menus() -> Vec> { MenuItem::os_action("Paste", editor::actions::Paste, OsAction::Paste), MenuItem::separator(), MenuItem::action("Find", search::buffer_search::Deploy::find()), - MenuItem::action("Find In Project", workspace::NewSearch), + MenuItem::action("Find In Project", workspace::DeploySearch::find()), MenuItem::separator(), MenuItem::action( "Toggle Line Comment",