pub mod parser;
use std::path::PathBuf;
use crate::editor::window::Axis;
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum Command {
Write(Option<PathBuf>),
Quit { force: bool },
Split { axis: Axis },
CloseWindow,
OnlyWindow,
WriteQuit { force: bool },
Edit { path: PathBuf, force: bool },
CreateFile(PathBuf),
CreateDirectory(PathBuf),
Reload,
GotoLine(usize),
Set { key: String, value: String },
Theme(String),
CycleBuffer { forward: bool },
Substitute {
pattern: String,
replacement: String,
all: bool,
whole_file: bool,
},
Help,
}