jesseduffield.lazygit/pkg/gui
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
..
context If selected line is outside, move it to the middle of the view 2023-08-15 11:40:40 +02:00
controllers Add rebase from marked base commit test 2023-08-12 16:16:03 +10:00
filetree Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
keybindings Use same labels for keys that we use in the config 2023-05-21 10:59:16 +10:00
mergeconflicts migrate patch building tests 2023-02-25 21:37:16 +11:00
modes Add a "Mark commit as base commit for rebase" command 2023-07-31 08:41:41 +02:00
patch_exploring If selected line is outside, move it to the middle of the view 2023-08-15 11:40:40 +02:00
popup Add demo test variant 2023-07-31 22:33:04 +10:00
presentation Show commit mark before showing extra info 2023-08-12 16:34:04 +10:00
services/custom_commands Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
status Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
style Stop hiding underscores for VSCode 2023-06-01 20:12:20 +10:00
types Remove file watcher code 2023-08-02 21:50:44 +10:00
background.go Ensure background refreshes don't bunch up 2023-07-10 17:30:44 +10:00
command_log_panel.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
context.go Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
context_config.go move some methods 2023-04-30 13:19:53 +10:00
controllers.go Allow deleting remote tags/branches from local tag/branch views (#2738) 2023-08-10 17:39:26 +10:00
dummies.go feat: add GitVersion struct 2022-12-30 20:01:14 +09:00
editors.go Could not type special characters on non-english keyboards 2023-07-23 14:33:50 +02:00
extras_panel.go Log error when saving app state fails after showing/hiding command log 2023-07-31 11:41:55 +02:00
global_handlers.go Add demo test variant 2023-07-31 22:33:04 +10:00
gui.go Remove file watcher code 2023-08-02 21:50:44 +10:00
gui_common.go Add demo test variant 2023-07-31 22:33:04 +10:00
gui_driver.go Add a Click() primitive to the integration test library 2023-08-07 15:10:28 +01:00
information_panel.go If OpenLink errors, show a dialog instead 2023-08-09 13:12:40 +01:00
keybindings.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
layout.go Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
main_panels.go Visualize the "ignore whitespace" state in the subtitle of the diff view 2023-05-20 12:58:32 +10:00
menu_panel.go Only apply right-alignment on first column of keybindings menu 2023-07-20 21:23:46 +10:00
options_map.go Add demo test variant 2023-07-31 22:33:04 +10:00
pty.go Make sure scrollbars have the right size initially 2023-03-21 18:26:18 +01:00
pty_windows.go Format code to pass lint 2021-09-16 21:38:43 +08:00
recent_repos_panel.go Use forward-slashes on windows 2023-07-30 18:35:24 +10:00
tasks_adapter.go Use an interface for tasks instead of a concrete struct 2023-07-10 17:12:21 +10:00
test_mode.go Add busy count for integration tests 2023-07-08 22:54:52 +10:00
view_helpers.go Log duration of post-refresh-update call 2023-07-29 09:39:22 +10:00
views.go Fix focus issue 2023-08-02 07:37:40 +10:00