pub enum Mode {
Normal,
InputCompleted(InputCompleted),
Navigate(Navigate),
NeedConfirmation(NeedConfirmation),
Preview,
InputSimple(InputSimple),
}Expand description
Different mode in which the application can be. It dictates the reaction to event and what to display.
Variants§
Normal
Default mode: display the files
InputCompleted(InputCompleted)
We’ll be able to complete the input string with different kind of completed items (exec, goto, search)
Select a target and navigate to it
NeedConfirmation(NeedConfirmation)
Confirmation is required before modification is made to existing files : delete, move, copy
Preview
Preview a file content
InputSimple(InputSimple)
Modes requiring an input that can’t be completed