lazygit/pkg/integration/tests/ui
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
..
accordion.go Add integration test for accordion mode 2023-07-19 22:17:29 +10:00
double_popup.go Use sentence case everywhere 2023-05-25 23:52:19 +10:00
empty_menu.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
mode_specific_keybinding_suggestions.go Show mode-specific keybinding suggestions 2024-01-28 08:33:13 +11:00
open_link_failure.go If OpenLink errors, show a dialog instead 2023-08-09 13:12:40 +01:00
range_select.go Clear range select upon pressing 'escape' 2024-01-19 10:47:21 +11:00
switch_tab_from_menu.go Use fields rather than methods on worktrees 2023-07-30 18:35:24 +10:00