altsem / gitu

A TUI Git client inspired by Magit
MIT License
1.66k stars 87 forks source link

Alias the `h` key to `?` #124

Closed frank-lenormand closed 3 months ago

frank-lenormand commented 3 months ago

Hi,

I intuitively hit ? whenever I want to check a quick help reference.

Maybe that’s because I use h, j, k, l for actual operations in other terminals tools (like my editor).

Would it be possible to alias the h key to ??

altsem commented 3 months ago

The default binding is bindings.root.help_menu = ["h"]. You could map it to both by doing: bindings.root.help_menu = ["h", "?"].

I would map it as default but considering if ? should be mapped to reverse search if / is mapped to search forward.

frank-lenormand commented 3 months ago

I didn’t realise I could set this in the user configuration, thanks!