jesseduffield.lazygit/pkg/commands
Jesse Duffield 0f9d9e13d1 Show mode-specific keybinding suggestions
As part of making lazygit more discoverable, there are certain keys which you almost certainly
need to press when you're in a given mode e.g. 'v' to paste commits when cherry-picking. This
commit prominently shows these keybinding suggestions alongside the others in the option view.

I'm using the same colours for these keybindings as is associated with the mode elsewhere e.g.
yellow for rebasing and cyan for cherry-picking. The cherry-picking one is a bit weird because
we also use cyan text to show loaders and app status at the bottom left so it may be confusing,
but I haven't personally found it awkward from having tested it out myself.

Previously we would render these options whenever a new context was activated, but now that we
need to re-render options whenever a mode changes, I'm instead rendering them on each screen
re-render (i.e. in the layout function). Given how cheap it is to render this text, I think
it's fine performance-wise.
2024-01-28 08:33:13 +11:00
..
git_commands Support range select for staging/discarding files 2024-01-25 11:34:59 +11:00
git_config Remove secureexec package 2023-07-30 19:59:51 +10:00
hosting_service Remove redundant len check 2023-10-04 21:03:26 +08:00
models Use inline status for fetching remotes 2024-01-26 08:29:04 +01:00
oscommands Refactor repo_paths.go to use git rev-parse 2024-01-24 08:40:01 +01:00
patch Standardise display of range selection across views 2024-01-19 10:47:21 +11:00
testdata Support opening lazygit in a submodule 2019-05-12 17:59:49 +10:00
types/enums Show mode-specific keybinding suggestions 2024-01-28 08:33:13 +11:00
git.go Refactor repo_paths.go to use git rev-parse 2024-01-24 08:40:01 +01:00
git_cmd_obj_builder.go Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
git_cmd_obj_runner.go Retry on index.lock error 2023-07-10 19:13:18 +10:00