1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-10 11:10:18 +02:00
lazygit/pkg
Stefan Haller 79c11a0458 If selected line is outside, move it to the middle of the view
Previously, the current line was only moved as much as necessary so that it's in
view again. This had the problem that when jumping downwards from hunk to hunk
with the right-arrow key, only the first line of the new hunk was shown at the
bottom of the window. I prefer to put the selected line in the middle of the
view in this case, so that I can see more of the newly selected hunk.

This has the consequence that when scrolling through the view line by line using
down-arrow, the view jumps by half a screen whenever I reach the bottom. I can
see how some users might be opposed to this change, but I happen to like it too,
because it allows me to see more context of what's ahead.
2023-08-15 11:40:40 +02:00
..
app Support bare worktrees where worktree does not have its own .git file 2023-08-07 22:40:53 +10:00
cheatsheet Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
commands Allow deleting remote tags/branches from local tag/branch views (#2738) 2023-08-10 17:39:26 +10:00
common Write unit tests with the help of afero 2023-07-30 18:35:36 +10:00
config use 'suspend' instead of 'editInTerminal' internally 2023-08-09 22:03:58 +10:00
constants
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 If selected line is outside, move it to the middle of the view 2023-08-15 11:40:40 +02:00
i18n Allow deleting remote tags/branches from local tag/branch views (#2738) 2023-08-10 17:39:26 +10:00
integration Add demo for diffing two commits 2023-08-12 17:24:05 +10: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 Remove secureexec package 2023-07-30 19:59:51 +10:00
theme Add a "Mark commit as base commit for rebase" command 2023-07-31 08:41:41 +02:00
updates Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
utils Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00