Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotkey menu idea - lazygit-like #75

Closed
jackschedel opened this issue Apr 25, 2024 · 4 comments
Closed

Hotkey menu idea - lazygit-like #75

jackschedel opened this issue Apr 25, 2024 · 4 comments
Labels
idea any new ideas or suggestions

Comments

@jackschedel
Copy link

jackschedel commented Apr 25, 2024

Lazygit is probably my favorite CLI program from a HCI perspective. It's help menu is excellent.

Its help menu can be opened with ? and works as follows:

  • Only the keybinds that could be pressed right now without error appear
  • Shows hotkey and brief description of what they do (plus, most hotkeys are single letter keys, rather than a chord combination)
  • Can use arrows to scroll through and enter to select, or can just press the hotkey
  • Search filterable with /
@jackschedel jackschedel added the idea any new ideas or suggestions label Apr 25, 2024
@yorukot
Copy link
Owner

yorukot commented Apr 25, 2024

thanks for your suggestion!
I think the help menu is a great way to do this.I will add it before version 1.2!

But plus, most hotkeys are single letter keys, rather than a chord combination
I think I probably wouldn't change that. This is just personal preference.And users can customize the hotkeys they want according to their own preferences.

  • Shows hotkey and brief description of what they do
  • Can use arrows to scroll through
  • Only the keybinds that could be pressed right now without error appear
  • enter to select, or can just press the hotkey
  • Search filterable with /

@yorukot yorukot added the todo label Apr 25, 2024
@jackschedel
Copy link
Author

But plus, most hotkeys are single letter keys, rather than a chord combination
I think I probably wouldn't change that. This is just personal preference.And users can customize the hotkeys they want according to their own preferences.

Totally understand, just wanted to add context. Excited for the help menu!

@yorukot
Copy link
Owner

yorukot commented Apr 28, 2024

The prototype of the help menu has been completed, but about pressing / to search. I want to use / to enter commands.
For example / and enter sudo mv ./xx /bin/xx in the currently focused file panel

Or do you have an idea about what this hotkey should be?

@jackschedel
Copy link
Author

If you already have a search file/etc keybind, just use that, and have it so that it filters down help if the help menu is opened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea any new ideas or suggestions
Projects
None yet
Development

No branches or pull requests

2 participants