pub enum Command {
Show 24 variants
ScrollLines(i64),
ScrollLogicalLines(i64),
PageDown,
PageUp,
HalfPageDown,
HalfPageUp,
GoTop,
GoBottom,
Quit,
Resize(u16, u16),
Refresh,
ToggleLineNumbers,
ToggleChop,
ToggleFollow,
SearchForward,
SearchBackward,
NextMatch,
PreviousMatch,
OptionPrefix,
Reload,
TogglePrettify,
SetPrettifyMode(PrettifyMode),
RedetectPrettify,
Noop,
}Variants§
ScrollLines(i64)
ScrollLogicalLines(i64)
J / K — jump forward or backward by one whole logical line,
skipping any remaining wrap rows of the current line. Useful for
long lines that wrap many screen rows.
PageDown
PageUp
HalfPageDown
HalfPageUp
GoTop
GoBottom
Quit
Resize(u16, u16)
Refresh
ToggleLineNumbers
ToggleChop
ToggleFollow
SearchForward
/ — open the forward-search prompt.
SearchBackward
? — open the backward-search prompt.
NextMatch
n — repeat the last search in its original direction.
PreviousMatch
N — repeat the last search in the opposite direction.
OptionPrefix
- — option-toggle prefix: the next key chooses an option to flip
(N → line numbers, S → chop, F → follow).
Reload
R — force-reload the source from disk now (only meaningful with
--live; no-op for static file sources and append-streaming follow).
TogglePrettify
Shift-P — toggle pretty-printing on/off (cycles back to the last
active mode if currently off).
SetPrettifyMode(PrettifyMode)
Set a specific prettify mode (issued by the -P<letter> sub-prefix
after the user picks j/y/t/x/h/c).
RedetectPrettify
Re-run byte-based content detection and apply the result (-Pa).
Noop
Trait Implementations§
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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§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.