use std::path::PathBuf;
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct PanelId(pub u32);
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct HandlerId(pub &'static str);
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum NotifyLevel {
Info,
Warn,
Error,
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum PanelEvent {
NeedsRedraw,
Quit,
CloseSelf,
Focus(PanelId),
OpenFile {
path: PathBuf,
line: usize,
col: usize,
},
OpenWith { handler: HandlerId, path: PathBuf },
RunCommand {
command: String,
cwd: Option<PathBuf>,
},
Notify { level: NotifyLevel, message: String },
}