pub fn lookup(chord: &str) -> Vec<&'static KeymapEntry>Expand description
Every row of the built-in default_keymap whose KeymapEntry::chord
string equals chord exactly — across all modes, in table order. The
match is on the notation string, case-sensitively, with no chord parsing
or normalisation. Used by :describe-key.
This consults only the static built-in catalog, never the live
KeymapRegistry: mode, user and plugin bindings
are not visible here (use
KeymapHandle::resolve_trace for
the live answer).
§Examples
use lattice_keymap::{BindingMode, lookup};
let hits = lookup("gg");
assert!(hits.iter().any(|e| e.modes.contains(&BindingMode::Normal)));
assert!(lookup("not-a-chord").is_empty());