lusingander / stu

TUI explorer application for Amazon S3 (AWS S3) 🪣
https://lusingander.github.io/stu/
MIT License
245 stars 8 forks source link

Add ability to remap key bindings #39

Open oreid-zd opened 1 month ago

oreid-zd commented 1 month ago

Would be great to be able to remap key bindings via environment variables or something.

Thanks!

lusingander commented 1 month ago

Yes, I agree that this feature is important. I'd like to implement it, but I haven't started yet.

Related: https://github.com/lusingander/stu/issues/25

oreid-zd commented 1 month ago

Thanks @lusingander! I haven't written much Rust but could give it a crack if you'd accept a PR?

lusingander commented 1 month ago

Thanks for showing interest in this project!

I think it might help to take a look at the custom keybinding implementations from another TUI project of mine:

Basically, I think the implementation should follow a similar approach. But there are a few things to keep in mind:

If you're planning to submit a PR, it might be a good idea to split it into two steps:

Feel free to reach out if you have any questions or need help along the way.