Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

let search happen too

Conrad Irwinfcf7007e0bdc
diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rs
index cb3538601fd..a685a82b073 100644
--- a/crates/project_panel/src/project_panel.rs
+++ b/crates/project_panel/src/project_panel.rs
@@ -392,7 +392,12 @@ impl ProjectPanel {
let context_menu = ContextMenu::build(cx, |mut menu, cx| {
if is_read_only {
- return menu.action("Copy Relative Path", Box::new(CopyRelativePath));
+ menu = menu.action("Copy Relative Path", Box::new(CopyRelativePath));
+ if is_dir {
+ menu = menu.action("Search Inside", Box::new(NewSearchInDirectory))
+ }
+
+ return menu;
}
if is_local {