hjkl-keymap
Backend-agnostic modal keymap: chord parsing, trie dispatch, leader/chord resolution for the hjkl editor stack
Part of the hjkl monorepo — a vim-modal editor in Rust.
Parses vim-style notation (<leader>gs, <C-x>, <S-Tab>, <C-S-Tab>, named
specials, <lt>, bare characters), stores bindings per-mode in separate tries,
and resolves key events to Pending / Match / Ambiguous / Unbound
outcomes via a stateful feed API.
Usage
[]
= "0.1"
use ;
use Instant;
let mut km: = new; // space as leader
km.add.unwrap;
km.add.unwrap;
let space = new;
let g = new;
let s = new;
let now = now;
assert!;
assert!;
assert!;
Documentation
Contributing
See the monorepo CONTRIBUTING guide.
License
MIT — see LICENSE.