Inspiration:
- https://dystroy.org/blog/keybindings/
- https://github.com/Canop/keybindings-example/blob/main/config.toml
For reference, the crate that is used in the article you linked is
https://docs.rs/crokey/1.2.0/crokey/
which looks pretty good.
I've written a keybinding engine myself for my side-project (shameless self-plug) "mailrs", a TUI notmuch email reader:
https://github.com/mailrs/mailrs
with relevant key-binding code here:
https://github.com/mailrs/mailrs/tree/master/crates/mailrs-tui/src/bindings
and I would love to patch something like this (based on crokey though, for better bus factor) into rad-tui! (After the currently open PRs are merged, so I do not have to fix rebasing conflicts too much laugh).
FWIW, I've also written a command engine (think :open file.txt in vim for
example, or "rofi"), that might be useful for enhancing the TUI even further:
https://github.com/matthiasbeyer/tui-commander
I'm excited to hear your thoughts!
Ah, I see that this TUI is based on termion, but "crokey" needs crossterm. Well, we could possibly change the backend I guess... Not sure whether this would break something though.