jesseduffield.lazygit/pkg/integration/tests
Stefan Haller 6c6201ab04 Fix order problems when saving custom commands history
This fixes two problems:
- each time the custom commands panel was opened, the history of commands would
  be shown in reversed order compared to last time. (The reason is that
  lo.Reverse modifies the slice in place rather than just returning a new,
  reversed slice.)
- when executing a previous command again (either by typing it in again, or by
  picking it from the history), it should move to the beginning of the history,
  but didn't.

We fix this by storing the history in reversed order (as the user sees it in
the panel), this makes the logic simpler. We just have to prepend rather
than append newly added commands now.

While this is theoretically a breaking change, it's not worth bothering because
the order was wrong for existing users in 50% of the cases anyway.
2024-02-16 13:31:37 +01:00
..
bisect Deprecate git.log.showGraph and git.log.order config 2024-02-16 13:23:35 +01:00
branch Use ErrorToast instead of error panel when invoking a disabled command 2024-01-14 17:45:35 +01:00
cherry_pick Deprecate git.log.showGraph and git.log.order config 2024-02-16 13:23:35 +01:00
commit Deprecate git.log.showGraph and git.log.order config 2024-02-16 13:23:35 +01:00
config Support matchers on integers in integration tests 2023-06-03 15:32:23 +10:00
conflicts Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
custom_commands Fix order problems when saving custom commands history 2024-02-16 13:31:37 +01:00
demo Fix cherrypick demo 2024-01-30 09:27:44 -06:00
diff Add busy count for integration tests 2023-07-08 22:54:52 +10:00
file Support range select for staging/discarding files 2024-01-25 11:34:59 +11:00
filter_and_search Improve keybinding descriptions 2024-01-28 08:12:01 +11:00
filter_by_path Pass -f as single arg in integration test 2024-01-12 20:19:50 +11:00
interactive_rebase Deprecate git.log.showGraph and git.log.order config 2024-02-16 13:23:35 +01:00
misc Make it mandatory to acknowledge toasts in tests 2024-01-14 17:42:03 +01:00
patch_building Fix typo 2024-01-28 09:49:56 +01:00
reflog Deprecate git.log.showGraph and git.log.order config 2024-02-16 13:23:35 +01:00
shared Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
staging Add range selection ability on list contexts 2024-01-19 10:47:21 +11:00
stash feat: add age on stash lines 2023-12-27 11:21:49 +01:00
submodule Support range select for staging/discarding files 2024-01-25 11:34:59 +11:00
sync Keep same branch selected when refreshing branches 2024-01-19 09:25:07 +01:00
tag Make it possible to handle toasts in integration tests 2024-01-14 17:42:03 +01:00
ui Show mode-specific keybinding suggestions 2024-01-28 08:33:13 +11:00
undo Support range select in rebase actions 2024-01-23 17:23:56 +11:00
worktree Support range select for staging/discarding files 2024-01-25 11:34:59 +11:00
test_list.go Fix order problems when saving custom commands history 2024-02-16 13:31:37 +01:00
test_list_generator.go Make test_list_generator.go print what it's doing 2023-09-29 20:40:15 +02:00
tests.go Set working directory in lazygit test command 2024-01-12 19:59:31 +11:00