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:33:22 -07:00
parent 5df9a57a8b
commit d46816589e
3 changed files with 72 additions and 16 deletions
+9 -1
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;