Skip to main content

register_visual_bindings

Function register_visual_bindings 

Source
pub fn register_visual_bindings(
    handle: &KeymapHandle,
    builtins: &Builtins,
    actions: &ActionIds,
    syntax_textobjects: &SyntaxTextObjectIds,
)
Expand description

Register every chord the legacy input::translate_visual recognised into the supplied handle’s Builtin layer under BindingMode::Visual. Called at App startup; the registration captures builtins’s motion / operator ids by value, so the resulting BoundCommands never re-resolve at lookup time.

Sources are tagged at this file + line so :describe-key shows e.g. h -> motion:char-left (builtin, keymap_visual.rs:NN).