Expand description
Per-keystroke hook logic, centralising what each shell template used to re-implement in bash/zsh/pwsh/clink/nu. The goal is that shells provide a thin “buffer + cursor in, eval-able string out” adapter and all the real expansion logic — command-position detection, token extraction, cursor placeholder handling, shell escaping — lives here in Rust.
Enums§
- Hook
Action - Outcome of a hook call — what the shell adapter should do to its buffer.
Functions§
- hook
- Core hook entry point, shell-agnostic.
- is_
command_ position - Returns
truewhen the characters to the left of the token we’re about to consider represent a position where a fresh command name is expected. - render_
action - Render a
HookActioninto a shell-specific eval-able string. The shell integration script consumes this verbatim viaeval(or equivalent).