pub enum Pending {
Show 16 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,
},
}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.
Trait Implementations§
impl Eq for Pending
impl StructuralPartialEq for Pending
Auto Trait Implementations§
impl Freeze for Pending
impl RefUnwindSafe for Pending
impl Send for Pending
impl Sync for Pending
impl Unpin for Pending
impl UnsafeUnpin for Pending
impl UnwindSafe for Pending
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more