Enum reedline::EditCommand [−][src]
pub enum EditCommand {
Show 24 variants
MoveToStart,
MoveToEnd,
MoveLeft,
MoveRight,
MoveWordLeft,
MoveWordRight,
InsertChar(char),
Backspace,
Delete,
BackspaceWord,
DeleteWord,
Clear,
CutFromStart,
CutToEnd,
CutWordLeft,
CutWordRight,
PasteCutBuffer,
UppercaseWord,
LowercaseWord,
CapitalizeChar,
SwapWords,
SwapGraphemes,
Undo,
Redo,
}
Expand description
Editing actions which can be mapped to key bindings.
Executed by Reedline::run_edit_commands()
Variants
Move to the start of the buffer
Move to the end of the buffer
Move one character to the left
Move one character to the right
Move one word to the left
Move one word to the right
InsertChar(char)
Insert a character at the current insertion point
Tuple Fields of InsertChar
0: char
Backspace delete from the current insertion point
Delete in-place from the current insertion point
Backspace delete a word from the current insertion point
Delete in-place a word from the current insertion point
Clear the current buffer
Cut from the start of the buffer to the insertion point
Cut from the insertion point to the end of the buffer
Cut the word left of the insertion point
Cut the word right of the insertion point
Paste the cut buffer at the insertion point
Upper case the current word
Lower case the current word
Capitalize the current character
Swap the current word with the word to the right
Swap the current grapheme/character with the one to the right
Undo the previous edit command
Redo an edit command from the undo history
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for EditCommand
impl Send for EditCommand
impl Sync for EditCommand
impl Unpin for EditCommand
impl UnwindSafe for EditCommand
Blanket Implementations
Mutably borrows from an owned value. Read more