Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Add mouse context action to copy permalink (#13247)
Stefan47174cea5001
diff --git a/crates/editor/src/mouse_context_menu.rs b/crates/editor/src/mouse_context_menu.rsindex 09cefc0de24..666303d9245 100644--- a/crates/editor/src/mouse_context_menu.rs+++ b/crates/editor/src/mouse_context_menu.rs@@ -1,7 +1,7 @@use crate::{- Copy, Cut, DisplayPoint, Editor, EditorMode, FindAllReferences, GoToDefinition,- GoToImplementation, GoToTypeDefinition, Paste, Rename, RevealInFinder, SelectMode,- ToggleCodeActions,+ Copy, CopyPermalinkToLine, Cut, DisplayPoint, Editor, EditorMode, FindAllReferences,+ GoToDefinition, GoToImplementation, GoToTypeDefinition, Paste, Rename, RevealInFinder,+ SelectMode, ToggleCodeActions,};use gpui::{DismissEvent, Pixels, Point, Subscription, View, ViewContext};use workspace::OpenInTerminal;@@ -91,7 +91,8 @@ pub fn deploy_context_menu(.action("Paste", Box::new(Paste)).separator().action("Reveal in Finder", Box::new(RevealInFinder))- .action("Open in Terminal", Box::new(OpenInTerminal));+ .action("Open in Terminal", Box::new(OpenInTerminal))+ .action("Copy Permalink", Box::new(CopyPermalinkToLine));match focus {Some(focus) => builder.context(focus),None => builder,