Skip to main content

run_command

Function run_command 

Source
pub fn run_command(
    line: impl Into<String>,
) -> impl FnMut(On<'_, '_, KeyPressed>, Commands<'_, '_>) + Send + Sync + 'static
Expand description

An observer for AppKeyBindingsExt::add_key_binding that runs the slash command line (without its /) for the shown agent.