pub enum AppCommand {
Show 27 variants
Down,
Up,
Expand,
Collapse,
ExpandRecursively,
Toggle,
ToggleRecursively,
CollapseRecursively,
Select,
Accept,
AcceptAlternate,
Descend,
Root,
PopRoot,
Back,
NextSibling,
PrevSibling,
PageDown,
PageUp,
HalfPageDown,
HalfPageUp,
First,
Last,
Jump,
Open,
Quit,
ToggleKeybindingPanel,
}Expand description
A command understood by the application itself (the cmd binding kind).
Variants§
Down
Move focus to the next on-screen line.
Up
Move focus to the previous on-screen line.
Expand
Expand the focused non-leaf, focus its first child if already expanded, or focus the next sibling of a leaf.
Collapse
Collapse the focused expanded branch, or focus its parent.
ExpandRecursively
Expand the focused non-leaf recursively, or focus the next sibling of a leaf.
Toggle
Flip the focused container between expanded and collapsed.
ToggleRecursively
Flip the focused container, expanding or collapsing recursively.
CollapseRecursively
Collapse the focused expanded branch recursively, or collapse its parent recursively and focus it.
Select
Enter semantics: expand a non-leaf, run the default action on a leaf.
Accept
Run the default action regardless of leaf-ness.
AcceptAlternate
Run the source-specific alternate action regardless of leaf-ness.
Descend
Descend into a non-leaf, expanding it first if collapsed.
Root
Make the focused node the root of the visible tree.
PopRoot
Restore the previous visible root.
Back
Restore the previous visible root, or quit at the original forest.
NextSibling
Focus next sibling, skipping over expanded children.
PrevSibling
Focus previous sibling.
PageDown
Scroll down one page.
PageUp
Scroll up one page.
HalfPageDown
Scroll down half a page.
HalfPageUp
Scroll up half a page.
First
Go to the first line.
Last
Go to the last visible line.
Jump
Open the jump picker: fuzzy-find a node by path and move focus to it.
Open
Hand the focused leaf’s filesystem path to the platform’s default opener. Nodes without one — containers, JSON — are left alone.
Quit
Exit without printing anything.
ToggleKeybindingPanel
Toggle the keybinding panel. Bound to the reserved ? key and not
nameable in config, so it has no entry in AppCommand::parse.
Implementations§
Trait Implementations§
Source§impl Clone for AppCommand
impl Clone for AppCommand
Source§fn clone(&self) -> AppCommand
fn clone(&self) -> AppCommand
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for AppCommand
Source§impl Debug for AppCommand
impl Debug for AppCommand
impl Eq for AppCommand
Source§impl PartialEq for AppCommand
impl PartialEq for AppCommand
impl StructuralPartialEq for AppCommand
Auto Trait Implementations§
impl Freeze for AppCommand
impl RefUnwindSafe for AppCommand
impl Send for AppCommand
impl Sync for AppCommand
impl Unpin for AppCommand
impl UnsafeUnpin for AppCommand
impl UnwindSafe for AppCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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<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