Improve editor::CopyAndTrim
action's discoverability (#27484)
Follow-up of https://github.com/zed-industries/zed/pull/27206 Add it to the editor context menu and Zed's app menu near the `Copy` action. Release Notes: - N/A
This commit is contained in:
parent
de67d93a92
commit
7462e74fbf
2 changed files with 3 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
use crate::actions::FormatSelections;
|
||||
use crate::CopyAndTrim;
|
||||
use crate::{
|
||||
actions::Format, selections_collection::SelectionsCollection, Copy, CopyPermalinkToLine, Cut,
|
||||
DisplayPoint, DisplaySnapshot, Editor, EditorMode, FindAllReferences, GoToDeclaration,
|
||||
|
@ -191,6 +192,7 @@ pub fn deploy_context_menu(
|
|||
.separator()
|
||||
.action("Cut", Box::new(Cut))
|
||||
.action("Copy", Box::new(Copy))
|
||||
.action("Copy and trim", Box::new(CopyAndTrim))
|
||||
.action("Paste", Box::new(Paste))
|
||||
.separator()
|
||||
.map(|builder| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue