grv icon indicating copy to clipboard operation
grv copied to clipboard

Show mappings of commands in menu

Open jrwrigh opened this issue 6 years ago • 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.

jrwrigh avatar Apr 13 '19 18:04 jrwrigh

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>

rgburke avatar May 01 '19 20:05 rgburke

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

jrwrigh avatar Aug 26 '19 21:08 jrwrigh