Skip to main content

register_help_mode_actions

Function register_help_mode_actions 

Source
pub fn register_help_mode_actions(registry: &mut CommandRegistry)
Expand description

Register help-mode’s action:help-dismiss command so translate_mode_keymaps can resolve the <Esc> binding’s cmd name. Its body emits [Effect::DismissPopup]; the host resolves HOW to dismiss (close the help-owned split pane, dismiss a floating popup, or restore the buffer active-pane help displaced) — the mode owns the chord + the decision, the pane/popup mechanism stays host-side behind the effect boundary. Called at boot beside register_repl_mode_actions while the registry is mutable; an unresolvable name would drop the whole binding with a warn.