Skip to main content

operator_prefix

Function operator_prefix 

Source
pub fn operator_prefix(op: OperatorId, builtins: &Builtins) -> Vec<KeyChord>
Expand description

Map an operator id to its primary chord prefix in the Normal-mode trie. Used by the Pending::AfterOperator and Pending::AfterTextObject resolvers to compute the lookup path.

Returns an empty Vec for unknown operators – the caller surfaces that as SetPending(None). Slice 8.g.iii covers every operator the existing keymap exposes; plugin-defined operators (slice 8.h) will register their own prefix at binding time.