Radish alpha
r
Radicle terminal user interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Implement user-defined keybindings
did:key:z6MkgFq6...nBGz opened 2 years ago

Inspiration:

  • https://dystroy.org/blog/keybindings/
  • https://github.com/Canop/keybindings-example/blob/main/config.toml
z6MkgFq6...nBGz added p:medium 2 years ago
z6MkgFq6...nBGz added p:next and removed p:medium 1 year ago
z6MkwcUR...q1kL commented 9 months ago

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!

z6MkwcUR...q1kL commented 9 months ago

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.