From e42dfb438715f80513d33a652035698485bbbd0c Mon Sep 17 00:00:00 2001 From: Enger Jimenez Date: Thu, 2 Oct 2025 05:21:25 -0400 Subject: [PATCH] Add more selection options to app menus (#39262) ## Summary The purpose of this pull request is to add new menu items for the menu bar as mentioned on this [discussion or feature request](https://github.com/zed-industries/zed/discussions/28153#discussion-8169826). The actions are already supported by the command palette, but not available on the `MenuBar`. ## Screenshot image Release Notes: - Added `SelectPrevious` and `SelectAllMatches` items to the `Selection` app menu. --- crates/zed/src/zed/app_menus.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/zed/src/zed/app_menus.rs b/crates/zed/src/zed/app_menus.rs index 00bde74928ba9ae22020d7dde8ced654a0b83557..d50260c706cb07506900f0ec0e8fecbf151c4bb3 100644 --- a/crates/zed/src/zed/app_menus.rs +++ b/crates/zed/src/zed/app_menus.rs @@ -142,6 +142,13 @@ pub fn app_menus() -> Vec { replace_newest: false, }, ), + MenuItem::action( + "Select Previous Occurrence", + editor::actions::SelectPrevious { + replace_newest: false, + }, + ), + MenuItem::action("Select All Occurrences", editor::actions::SelectAllMatches), MenuItem::separator(), MenuItem::action("Move Line Up", editor::actions::MoveLineUp), MenuItem::action("Move Line Down", editor::actions::MoveLineDown),