pub trait EditMode: Send {
    fn parse_event(&mut self, event: Event) -> ReedlineEvent;
    fn edit_mode(&self) -> PromptEditMode;
}
Expand description

Define the style of parsing for the edit events Available default options:

  • Emacs
  • Vi

Required methods

Translate the given user input event into what the LineEditor understands

What to display in the prompt indicator

Implementors