jesseduffield / lazygit

simple terminal UI for git commands
MIT License
48.1k stars 1.73k forks source link

Discoverability #3141

Open samholmes opened 7 months ago

samholmes commented 7 months ago

Topic Discoverability

Your thoughts I pressed e on the commit to rebase. I pressed f to fixup a commit. Now what? I pressed ? and see a list of things I can do, but none of them seem to indicate how I can continue with the rebase. The tool, like many, lack the ability to discover how to use it as you use it.

The best tools don't require a manual. I propose ? opens a fuzzy-searchable modal view that is contextual to the current mode. This way I can search for the thing that I'm looking to do, and execute it (while also glancing at the keybinding for next time). This simple change would make the manual look like this:

  1. Run lazygit from the command line prompt
  2. Press ? key to execute commands

Shortest manual ever. And now it's just a matter of getting skilled with the tool.

jesseduffield commented 5 months ago

On master we now show keybinding suggestions based on the mode you're in e.g. when rebasing you'll now see a prominent suggestion to press 'm' to view rebase options:

image

The keybindings menu is searchable already if you press '/' on it, though it would be nice if you could directly start typing in order to search.

kadaan commented 1 month ago

Maybe it would make sense to include Search: / in the footer when in the keybinding panel