jesseduffield.lazygit/pkg
Stefan Haller bd8518355e Keep the same commit selected when exiting filtering mode
When exiting filtering mode, we currently keep the selection index the same in
the commits panel. This doesn't make sense at all, since the index in the
filtered view has no relation to the index in the unfiltered view.

I often use filtering mode (either by path or by author) to find a given commit
faster than I would otherwise be able to. When exiting filtering mode, it's
useful to keep the same commit selected, so that I can look at the surrounding
commits, see which branch it was a part of, etc. So reselect the commit again
after exiting filtering mode.

Sometimes this is not possible, most likely when the commit is so long ago that
it's outside of the initial 300 range. In that case, at least select the commit
again that was selected before I entered filtering; this is still better than
arbitrarily keeping the same selection index.
2024-03-28 12:23:46 +01:00
..
app Fix deleting update-ref todos 2024-03-26 22:29:56 +01:00
cheatsheet Render keybinding cheatsheet as markdown table 2024-01-28 08:12:01 +11:00
commands Fix deleting update-ref todos 2024-03-26 22:29:56 +01:00
common Add AppState to common.Common 2023-09-04 17:48:39 +02:00
config Fix container detection 2024-03-22 13:42:15 +01:00
constants Make the links in the status panel point to the current version rather than master 2024-03-22 08:13:59 +01:00
env Support bare worktrees where worktree does not have its own .git file 2023-08-07 22:40:53 +10:00
fakes cleanup integration test code 2023-02-26 12:54:13 +11:00
gui Keep the same commit selected when exiting filtering mode 2024-03-28 12:23:46 +01:00
i18n Change CopiedToClipboard text to start lower-case 2024-03-22 09:59:46 +01:00
integration Keep the same commit selected when exiting filtering mode 2024-03-28 12:23:46 +01:00
jsonschema Add UserConfig jsonschema generation script 2023-12-02 10:46:24 +01:00
logs Remove secureexec package 2023-07-30 19:59:51 +10:00
snake integrate snake game into lazygit 2022-12-30 12:18:59 +11:00
tasks Refactor repo_paths.go to use git rev-parse 2024-01-24 08:40:01 +01:00
theme Standardise display of range selection across views 2024-01-19 10:47:21 +11:00
updates Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
utils Fix deleting update-ref todos 2024-03-26 22:29:56 +01:00