pub enum ParsedCommand {
Show 17 variants
Mkdir(String),
Touch(String),
Rename(String),
Mv(String),
Cp(String),
MvMatching {
pattern: String,
dest: String,
},
CpMatching {
pattern: String,
dest: String,
},
Git(String),
Set {
key: String,
value: String,
},
Sort {
by: Option<SortBy>,
reverse: bool,
},
Shell(String),
Bookmark(String),
Jump(String),
Plugin {
name: String,
arg: String,
},
Term(TermCommand),
Unmark,
ConfigWrite,
}Expand description
A successfully parsed, validated Command Mode input.
Each variant carries exactly the arguments it needs; the parser rejects inputs that don’t match the expected arity or content constraints.
Variants§
Mkdir(String)
Create a directory with the given name inside the current directory.
Touch(String)
Create an empty file with the given name inside the current directory.
Rename(String)
Rename the currently selected entry to new_name.
Mv(String)
Move the selected entry to dest (relative or absolute path).
Cp(String)
Copy the selected entry to dest (relative or absolute path).
MvMatching
Move every entry of cwd matching pattern into the directory dest.
Fields
CpMatching
Copy every entry of cwd matching pattern into the directory dest.
Fields
Git(String)
Run a git subcommand string (e.g. "init", "status --short") as
git <subcommand> through [general] shell, holding the screen
afterwards per [general] shell_pause.
Set
Set a runtime config key to a value, through TrailConfig::set_value.
Sort
Re-order the active tab’s listing: :sort [key] [reverse].
by is None when the command named only reverse, which flips the
order already in use rather than choosing a new one.
Fields
Shell(String)
Execute an arbitrary shell command string.
Bookmark(String)
Add a bookmark: :bookmark <name> saves cwd under name.
If name is empty the current directory base-name is used.
Jump(String)
Jump to a previously saved bookmark: :jump <name>.
Plugin
Run a custom plugin action: :plugin <name> [arg].
Term(TermCommand)
Drive the terminal panel: :term, :term new [profile],
:term close, :term <n>, :term max.
Unmark
Unmark every marked entry: :unmark.
ConfigWrite
Save this session’s :set changes into the config file:
:config write.
Trait Implementations§
Source§impl Clone for ParsedCommand
impl Clone for ParsedCommand
Source§impl Debug for ParsedCommand
impl Debug for ParsedCommand
impl Eq for ParsedCommand
Source§impl PartialEq for ParsedCommand
impl PartialEq for ParsedCommand
impl StructuralPartialEq for ParsedCommand
Auto Trait Implementations§
impl Freeze for ParsedCommand
impl RefUnwindSafe for ParsedCommand
impl Send for ParsedCommand
impl Sync for ParsedCommand
impl Unpin for ParsedCommand
impl UnsafeUnpin for ParsedCommand
impl UnwindSafe for ParsedCommand
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>
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>
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)
&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)
&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
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> ⓘ
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> ⓘ
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 more