Added 'open in terminal' action to the project panel context menu

Also slightly re-arranged the project panel context menu
This commit is contained in:
Mikayla 2023-09-15 21:32:58 -07:00
parent 5df9a57a8b
commit d46816589e
No known key found for this signature in database
3 changed files with 72 additions and 16 deletions

View file

@ -203,7 +203,15 @@ impl Clone for Toast {
}
}
impl_actions!(workspace, [ActivatePane, ActivatePaneInDirection, Toast]);
#[derive(Clone, Deserialize, PartialEq)]
pub struct OpenTerminal {
pub working_directory: PathBuf,
}
impl_actions!(
workspace,
[ActivatePane, ActivatePaneInDirection, Toast, OpenTerminal]
);
pub type WorkspaceId = i64;