pub enum InputSimple {
Rename,
Chmod,
Newfile,
Newdir,
RegexMatch,
Sort,
Filter,
SetNvimAddr,
Password(Option<MountAction>, PasswordUsage),
ShellCommand,
Remote,
CloudNewdir,
}Expand description
Different modes in which the user is expeted to type something. It may be a new filename, a mode (aka an octal permission), the name of a new file, of a new directory, A regex to match all files in current directory, a kind of sort, a mark name, a new mark or a filter.
Variants§
Rename
Rename the selected file
Chmod
Change permissions of the selected file
Newfile
Touch a new file
Newdir
Mkdir a new directory
RegexMatch
Flag files matching a regex
Sort
Change the type of sort
Filter
Filter by extension, name, directory or no filter
SetNvimAddr
Set a new neovim RPC address
Password(Option<MountAction>, PasswordUsage)
Input a password (chars a replaced by *)
ShellCommand
Shell command execute as is
Remote
Mount a remote directory with sshfs
CloudNewdir
Create a new file in the current cloud
Implementations§
Trait Implementations§
Source§impl Clone for InputSimple
impl Clone for InputSimple
Source§fn clone(&self) -> InputSimple
fn clone(&self) -> InputSimple
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CursorOffset for InputSimple
impl CursorOffset for InputSimple
fn cursor_offset(&self) -> u16
Source§impl Display for InputSimple
impl Display for InputSimple
Source§impl Leave for InputSimple
impl Leave for InputSimple
Source§fn must_refresh(&self) -> bool
fn must_refresh(&self) -> bool
Should the file content & window be refreshed when leaving this mode?
Source§fn must_reset_mode(&self) -> bool
fn must_reset_mode(&self) -> bool
Should the edit mode be reset to Nothing when leaving this mode ?
Source§impl LineDisplay for InputSimple
impl LineDisplay for InputSimple
Source§impl PartialEq for InputSimple
impl PartialEq for InputSimple
Source§impl SecondLine for InputSimple
impl SecondLine for InputSimple
Source§fn second_line(&self) -> &'static str
fn second_line(&self) -> &'static str
Line describing the mode and its custom keybinds
impl Copy for InputSimple
impl Eq for InputSimple
impl StructuralPartialEq for InputSimple
Auto Trait Implementations§
impl Freeze for InputSimple
impl RefUnwindSafe for InputSimple
impl Send for InputSimple
impl Sync for InputSimple
impl Unpin for InputSimple
impl UnwindSafe for InputSimple
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read moreSource§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.