jesseduffield.lazygit/pkg/integration/components
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
..
alert_driver.go Support matchers on integers in integration tests 2023-06-03 15:32:23 +10:00
assertion_helper.go Remove retry logic in integration tests 2023-07-09 20:57:18 +10:00
commit_description_panel_driver.go Add test demonstrating a bug with preserving the commit message 2024-01-09 14:31:53 +01:00
commit_message_panel_driver.go Remove unused function 2024-01-09 14:31:53 +01:00
common.go Show mode-specific keybinding suggestions 2024-01-28 08:33:13 +11:00
confirmation_driver.go Add demo for amending old commit 2023-08-02 22:32:51 +10:00
env.go Refactor repo_paths.go to use git rev-parse 2024-01-24 08:40:01 +01:00
file_system.go Support matchers on integers in integration tests 2023-06-03 15:32:23 +10:00
git.go Allow deleting remote tags/branches from local tag/branch views (#2738) 2023-08-10 17:39:26 +10:00
int_matcher.go Add integration tests for searching/filtering 2023-07-03 12:54:14 +10:00
matcher.go Support matchers on integers in integration tests 2023-06-03 15:32:23 +10:00
menu_driver.go Use ErrorToast instead of error panel when invoking a disabled command 2024-01-14 17:45:35 +01:00
paths.go Rename test/results to test/_results 2023-09-15 18:04:20 +02:00
popup.go Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10:00
prompt_driver.go Support matchers on integers in integration tests 2023-06-03 15:32:23 +10:00
random.go Add commit graph demo 2023-08-12 16:16:03 +10:00
runner.go Refactor repo_paths.go to use git rev-parse 2024-01-24 08:40:01 +01:00
search_driver.go Support matchers on integers in integration tests 2023-06-03 15:32:23 +10:00
shell.go Refactor repo_paths.go to use git rev-parse 2024-01-24 08:40:01 +01:00
test.go Refactor repo_paths.go to use git rev-parse 2024-01-24 08:40:01 +01:00
test_driver.go Make it possible to handle toasts in integration tests 2024-01-14 17:42:03 +01:00
test_test.go Make it mandatory to acknowledge toasts in tests 2024-01-14 17:42:03 +01:00
text_matcher.go Better assertion logic for line selection 2024-01-23 13:43:39 +11:00
view_driver.go Fix error message for selected lines 2024-01-25 11:34:59 +11:00
views.go Show mode-specific keybinding suggestions 2024-01-28 08:33:13 +11:00