rgburke/grv

Show mappings of commands in menu

jrwrigh opened this issue · 2 comments

It'd be nice to show the mappings for commands when a menu is opened. For example, lazygit does it like this:
image

It'd help to serve as a quick and easy reminder on how to use the program efficiently, rather than having to consult the help menu. Even better if you could then use those keys to execute the command as well.

It'd also be nice if those key commands could auto-update for remaps, but I think that leaving them as the default mappings wouldn't be too bad.

Hi, thanks for the suggestion, I agree that's a nice idea. Master has been updated with this functionality so that the menus look like:

image

Pressing the keys highlighted in blue will execute the corresponding actions. User defined mapping are also shown. For example, the www mapping above was added with:

map RefView www <grv-checkout-ref>

Is it possible you can make a new release with this change in it? It'd make it much easier to get to it.