use crate::events::Event;
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd)]
pub(crate) enum MetaEvent {
Abort,
ForceAbort,
Rebase,
ForceRebase,
ActionBreak,
ActionDrop,
ActionEdit,
ActionFixup,
ActionPick,
ActionReword,
ActionSquash,
MoveCursorDown,
MoveCursorEnd,
MoveCursorHome,
MoveCursorLeft,
MoveCursorPageDown,
MoveCursorPageUp,
MoveCursorRight,
MoveCursorUp,
Delete,
Edit,
OpenInEditor,
ShowCommit,
ShowDiff,
SwapSelectedDown,
SwapSelectedUp,
ToggleVisualMode,
InsertLine,
FixupKeepMessage,
FixupKeepMessageWithEditor,
No,
Yes,
ExternalCommandSuccess,
ExternalCommandError,
SearchUpdate,
}
impl input::CustomEvent for MetaEvent {}
impl From<MetaEvent> for Event {
#[inline]
fn from(event: MetaEvent) -> Self {
Self::MetaEvent(event)
}
}