use serde::{Deserialize, Serialize}; use strum::Display; /// Application-level events, distinct from [`crate::buffer::command::Command`], /// which is what key bindings name. `Action` is what the event loop routes; /// `Command` is what the editor executes. #[derive(Debug, Clone, PartialEq, Eq, Display, Serialize, Deserialize)] pub enum Action { Tick, Render, Resize(u16, u16), Suspend, Resume, Quit, ClearScreen, Error(String), }