pub fn keybind_chords_for_key<'a>(
key: &str,
keymap: &'a KeyMap,
) -> &'a [KeyChord]Expand description
What: Look up the in-memory chord list for a canonical keybind action key.
Inputs:
key: Canonical keybind name fromcrate::theme::EDITABLE_KEYBINDS.keymap: Current keymap snapshot.
Output:
- Slice of chords currently bound to the action; empty when the action is not recognized (treated as unbound).
Details:
- Mirrors the dispatch in
theme::settings::parse_keybinds::apply_keybindso editor read/write paths stay in sync with the parser.