feat(evil-keys): add keybinding crate with trie dispatch, count prefix, and timeout

Plug'n'play modal keybinding system inspired by Doom Emacs + Evil mode.
Generic over consumer Action type. Core: Key parser ("C-d", "SPC"),
trie-based sequence matching with conflict detection, count prefix (5j),
timeout tracking, which-key introspection, and multi-mode dispatch.

78 unit tests covering key parsing, trie conflicts, dispatch state machine,
count accumulation, timeout expiry, and which-key generation.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/claude-agent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
Alexander
2026-05-10 10:59:43 +02:00
parent 5a34fafd3f
commit 216a11b9db
9 changed files with 1900 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
[package]
name = "evil-keys"
version = "0.1.0"
edition = "2021"
[dependencies]
crossterm = "0.28"
indexmap = "2"
[dev-dependencies]
proptest = "1.4"