#[non_exhaustive]pub enum Motion {
Show 14 variants
Left,
Right,
WordLeft,
WordRight,
Previous,
Next,
PreviousWord,
NextWord,
Up,
Down,
LineStart,
LineEnd,
TextStart,
TextEnd,
}Expand description
A way to move a caret or extend a selection.
Left/Right and their word forms move on screen (arrow keys): in right-to-left text
Left moves forward through the text. Previous/Next and their word forms move in text
order, as deleting does (Backspace removes the logically previous character, wherever it
is drawn).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Left
One character left on screen.
Right
One character right on screen.
WordLeft
To the next word boundary left on screen.
WordRight
To the next word boundary right on screen.
Previous
One character back in text order.
Next
One character forward in text order.
PreviousWord
To the previous word boundary in text order.
NextWord
To the next word boundary in text order.
Up
One line up, keeping the horizontal position (the start of the text from the first line).
Down
One line down, keeping the horizontal position (the end of the text from the last line).
LineStart
To the start of the visual line.
LineEnd
To the end of the visual line.
TextStart
To the start of the text.
TextEnd
To the end of the text.