pub enum Action {
Show 17 variants
Repeat,
SelectObject {
scope: TextObjectScope,
kind: TextObjectKind,
},
Move(Motion),
Operate {
operator: Operator,
target: EditTarget,
},
Insert(InsertStyle),
ReplaceChar(char),
DeleteChars {
backward: bool,
},
Paste {
before: bool,
},
ToggleCase,
Join {
spaces: bool,
},
Visual(Shape),
SwapVisual,
Reselect,
History(HistoryCommand),
Target(TargetRequest),
Host(HostCommand),
BlockInsert {
append: bool,
},
}Expand description
Semantic command retained for repeat independently of key mappings.
Variants§
Repeat
Replay the last successful change. An explicit count replaces its original count.
SelectObject
Select a text object using the requested boundaries.
Fields
scope: TextObjectScopeWhether to include adjacent whitespace or delimiters.
kind: TextObjectKindObject family to resolve at the cursor.
Move(Motion)
Move the cursor, extending the anchor when Visual mode is active.
Operate
Resolve a target and then apply an editing operator to it.
Fields
target: EditTargetMotion, object, selection or host service that defines the range.
Insert(InsertStyle)
Begin an Insert or Replace transaction at the requested position.
ReplaceChar(char)
Replace selected graphemes with the supplied character (r).
DeleteChars
Delete graphemes on the current line (x or X).
Paste
Put the unnamed register using its recorded selection shape.
ToggleCase
Toggle case at the cursor or over the selection (~).
Join
Join logical lines, including those covered by a Visual selection.
Visual(Shape)
Enter, switch or toggle the requested Visual shape.
SwapVisual
Exchange the active cursor and selection anchor (o).
Reselect
Restore the previous Visual selection (gv).
History(HistoryCommand)
Request a change to host-owned undo history.
Target(TargetRequest)
Move or extend a selection to a host-resolved destination.
Host(HostCommand)
Dispatch a host-defined semantic action.
BlockInsert
Insert on the rows covered by a Visual block.