Enum rustyline::Cmd [−][src]
#[non_exhaustive]
pub enum Cmd {
Show 39 variants
Abort,
AcceptLine,
BeginningOfHistory,
CapitalizeWord,
ClearScreen,
Complete,
CompleteBackward,
CompleteHint,
DowncaseWord,
EndOfFile,
EndOfHistory,
ForwardSearchHistory,
HistorySearchBackward,
HistorySearchForward,
Insert(RepeatCount, String),
Interrupt,
Kill(Movement),
Move(Movement),
NextHistory,
Noop,
Overwrite(char),
PreviousHistory,
QuotedInsert,
ReplaceChar(RepeatCount, char),
Replace(Movement, Option<String>),
ReverseSearchHistory,
SelfInsert(RepeatCount, char),
Suspend,
TransposeChars,
TransposeWords(RepeatCount),
Undo(RepeatCount),
Unknown,
UpcaseWord,
ViYankTo(Movement),
Yank(RepeatCount, Anchor),
YankPop,
LineUpOrPreviousHistory(RepeatCount),
LineDownOrNextHistory(RepeatCount),
AcceptOrInsertLine,
}
Expand description
Commands
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Abort
abort
AcceptLine
accept-line
BeginningOfHistory
beginning-of-history
CapitalizeWord
capitalize-word
ClearScreen
clear-screen
Complete
complete
CompleteBackward
complete-backward
CompleteHint
complete-hint
DowncaseWord
downcase-word
EndOfFile
vi-eof-maybe
EndOfHistory
end-of-history
ForwardSearchHistory
forward-search-history
HistorySearchBackward
history-search-backward
HistorySearchForward
history-search-forward
Insert(RepeatCount, String)
Insert text
Interrupt
Interrupt signal (Ctrl-C)
Kill(Movement)
Tuple Fields
0: Movement
backward-delete-char, backward-kill-line, backward-kill-word delete-char, kill-line, kill-word, unix-line-discard, unix-word-rubout, vi-delete, vi-delete-to, vi-rubout
Move(Movement)
Tuple Fields
0: Movement
backward-char, backward-word, beginning-of-line, end-of-line, forward-char, forward-word, vi-char-search, vi-end-word, vi-next-word, vi-prev-word
NextHistory
next-history
Noop
No action
Overwrite(char)
Tuple Fields
0: char
vi-replace
PreviousHistory
previous-history
QuotedInsert
quoted-insert
ReplaceChar(RepeatCount, char)
vi-change-char
Replace(Movement, Option<String>)
vi-change-to, vi-substitute
ReverseSearchHistory
reverse-search-history
SelfInsert(RepeatCount, char)
self-insert
Suspend
Suspend signal (Ctrl-Z on unix platform)
TransposeChars
transpose-chars
TransposeWords(RepeatCount)
Tuple Fields
0: RepeatCount
transpose-words
Undo(RepeatCount)
Tuple Fields
0: RepeatCount
undo
Unknown
Unsupported / unexpected
UpcaseWord
upcase-word
ViYankTo(Movement)
Tuple Fields
0: Movement
vi-yank-to
Yank(RepeatCount, Anchor)
yank, vi-put
YankPop
yank-pop
LineUpOrPreviousHistory(RepeatCount)
Tuple Fields
0: RepeatCount
moves cursor to the line above or switches to prev history entry if the cursor is already on the first line
LineDownOrNextHistory(RepeatCount)
Tuple Fields
0: RepeatCount
moves cursor to the line below or switches to next history entry if the cursor is already on the last line
AcceptOrInsertLine
accepts the line when cursor is at the end of the text (non including trailing whitespace), inserts newline character otherwise
Implementations
Tells if current command should reset kill ring.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Cmd
impl UnwindSafe for Cmd
Blanket Implementations
Mutably borrows from an owned value. Read more