charmbracelet / gum

A tool for glamorous shell scripts 🎀
MIT License
17.79k stars 339 forks source link

Add `--keybindings` option to show keybindings #202

Open simjnd opened 1 year ago

simjnd commented 1 year ago

Is your feature request related to a problem? Please describe. Use gum pager: It shows keybindings at the bottom. Use any other component : No keybindings are shown.

Describe the solution you'd like Since some keybindings may not be obvious (You need TAB to toggle selection in gum filter but SPACE in gum choose, g and G are shortcuts to go to the top or bottom of the list, you can use the right / left arrow keys in gum file, etc.) it would be interesting to add an option (e.g. --keybindings) to optionally display these keybindings at the bottom of the input to make it more accessible for users not used to CLIs.

maaslalani commented 1 year ago

👍 I think we can introduce a flag called --show-help or --hide-help to show/remove them.