pub enum Pending {
Show 20 variants
None,
Op {
op: Operator,
count1: usize,
},
OpTextObj {
op: Operator,
count1: usize,
inner: bool,
},
OpG {
op: Operator,
count1: usize,
},
G,
Find {
forward: bool,
till: bool,
},
OpFind {
op: Operator,
count1: usize,
forward: bool,
till: bool,
},
Replace,
VisualTextObj {
inner: bool,
},
Z,
SetMark,
GotoMarkLine,
GotoMarkChar,
SelectRegister,
RecordMacroTarget,
PlayMacroTarget {
count: usize,
},
SquareBracketOpen,
SquareBracketClose,
OpSquareBracketOpen {
op: Operator,
count1: usize,
},
OpSquareBracketClose {
op: Operator,
count1: usize,
},
}Variants§
None
Op
Operator seen; still waiting for a motion / text-object / double-op.
count1 is any count pressed before the operator.
OpTextObj
Operator + ‘i’ or ‘a’ seen; waiting for the text-object character.
OpG
Operator + ‘g’ seen (for dgg).
G
Bare g seen in normal/visual — looking for g, e, E, …
Find
Bare f/F/t/T — looking for the target char.
OpFind
Operator + f/F/t/T — looking for target char.
Replace
r pressed — waiting for the replacement char.
VisualTextObj
Visual mode + i or a pressed — waiting for the text-object
character to extend the selection over.
Z
Bare z seen — looking for z (center), t (top), b (bottom).
SetMark
m pressed — waiting for the mark letter to set.
GotoMarkLine
' pressed — waiting for the mark letter to jump to its line
(lands on first non-blank, linewise for operators).
GotoMarkChar
` pressed — waiting for the mark letter to jump to the
exact (row, col) stored at set time (charwise for operators).
SelectRegister
" pressed — waiting for the register selector. The next char
(a–z, A–Z, 0–9, or ") sets pending_register.
RecordMacroTarget
q pressed (not currently recording) — waiting for the macro
register name. The macro records every key after the chord
resolves, until a bare q ends the recording.
PlayMacroTarget
@ pressed — waiting for the macro register name to play.
count is the prefix multiplier (3@a plays the macro 3
times); 0 means “no prefix” and is treated as 1.
SquareBracketOpen
[ pressed in Normal/Visual mode — waiting for the second key.
Resolves [[ → SectionBackward, [] → SectionEndBackward.
SquareBracketClose
] pressed in Normal/Visual mode — waiting for the second key.
Resolves ]] → SectionForward, ][ → SectionEndForward.
OpSquareBracketOpen
Operator + [ pending — waiting for second key to pick section motion.
OpSquareBracketClose
Operator + ] pending — waiting for second key to pick section motion.