octobanana / fltrdr

A TUI text reader for the terminal.
https://octobanana.com/software/fltrdr
MIT License
486 stars 9 forks source link

Cannot rebind keys #10

Open DKuykendall opened 5 years ago

DKuykendall commented 5 years ago

Keys currently cannot be rebound. HJKL is awkward for some non-standard/non-us keyboard layouts.

As fltrdr already exposes most if not all of the necessary commands to fit the functionality of the existing keybinds, I'd suggest a format in the config something like:

bind {key} {command} {args}

gh0stl4b commented 5 years ago

I don't think this would be top priority, so you can use the arrow keys to navigate or you can just edit src/fltrdr/tui.cc to suit your preference and compile.

octobanana commented 5 years ago

I think this would be a great addition, thanks for bringing this up.

There are a few things that need to be implemented beforehand.

I think after the above is done, making an interface to assign a specific key to a certain function would be possible.