Centralize the CopyPath
and CopyRelativePath
actions to zed_actions
(#24836)
I spent an hour with @marcospb19 this morning debugging an issue with adding `Copy Path` and `Copy Relative Path` actions to the editor context menu. Turned out that the problem was using `workspace::CopyPath` in the menu and `editor::CopyPath` in the action handler. This is an easy mistake to make, so let's fix it for everyone. Release Notes: - N/A
This commit is contained in:
parent
28c667a3c7
commit
5d26ce14d7
13 changed files with 84 additions and 31 deletions
|
@ -43,10 +43,34 @@ actions!(
|
|||
ResetBufferFontSize,
|
||||
DecreaseUiFontSize,
|
||||
IncreaseUiFontSize,
|
||||
ResetUiFontSize
|
||||
ResetUiFontSize,
|
||||
]
|
||||
);
|
||||
|
||||
pub mod workspace {
|
||||
use gpui::action_with_deprecated_aliases;
|
||||
|
||||
action_with_deprecated_aliases!(
|
||||
workspace,
|
||||
CopyPath,
|
||||
[
|
||||
"editor::CopyPath",
|
||||
"outline_panel::CopyPath",
|
||||
"project_panel::CopyPath"
|
||||
]
|
||||
);
|
||||
|
||||
action_with_deprecated_aliases!(
|
||||
workspace,
|
||||
CopyRelativePath,
|
||||
[
|
||||
"editor::CopyRelativePath",
|
||||
"outline_panel::CopyRelativePath",
|
||||
"project_panel::CopyRelativePath"
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
pub mod git {
|
||||
use gpui::action_with_deprecated_aliases;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue