jesseduffield.lazygit/pkg/gui/context
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
..
traits do not highlight line if there are no items to display 2022-04-16 15:19:32 +10:00
base_context.go Begin refactoring gui 2023-04-30 13:19:52 +10:00
branches_context.go Don't show branch heads in reflog subcommits 2023-07-31 08:34:01 +02:00
commit_files_context.go Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
commit_message_context.go Better tag creation UX 2023-07-22 14:36:35 +10:00
confirmation_context.go split context common from helper common 2023-04-30 13:19:53 +10:00
context.go Fix bug where worktree view would take over window upon switching branches 2023-07-30 18:35:24 +10:00
context_common.go split context common from helper common 2023-04-30 13:19:53 +10:00
dynamic_title_builder.go show namesake for child views 2022-03-26 18:00:46 +11:00
filtered_list.go Use fuzzy search when filtering a view 2023-07-22 13:14:29 +10:00
filtered_list_view_model.go Scroll to top when filtering and retain selection when cancelling filter 2023-07-03 12:54:14 +10:00
list_context_trait.go Only apply right-alignment on first column of keybindings menu 2023-07-20 21:23:46 +10:00
list_view_model.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
local_commits_context.go Add a "Mark commit as base commit for rebase" command 2023-07-31 08:41:41 +02:00
menu_context.go Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
merge_conflicts_context.go split context common from helper common 2023-04-30 13:19:53 +10:00
parent_context_mgr.go refactor contexts code 2022-03-17 19:13:40 +11:00
patch_explorer_context.go If selected line is outside, move it to the middle of the view 2023-08-15 11:40:40 +02:00
reflog_commits_context.go Don't show branch heads in reflog subcommits 2023-07-31 08:34:01 +02:00
remote_branches_context.go Don't show branch heads in reflog subcommits 2023-07-31 08:34:01 +02:00
remotes_context.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
search_trait.go Cancel filter/search when hitting escape 2023-07-03 12:54:13 +10:00
setup.go Initial addition of support for worktrees 2023-07-30 18:35:21 +10:00
simple_context.go remove context callback opts 2023-04-30 13:19:53 +10:00
stash_context.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
sub_commits_context.go Add a "Mark commit as base commit for rebase" command 2023-07-31 08:41:41 +02:00
submodules_context.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
suggestions_context.go Add busy count for integration tests 2023-07-08 22:54:52 +10:00
tags_context.go Don't show branch heads in reflog subcommits 2023-07-31 08:34:01 +02:00
view_trait.go refactor to only have one context per view 2022-08-06 13:49:11 +10:00
working_tree_context.go Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
worktrees_context.go Use fields rather than methods on worktrees 2023-07-30 18:35:24 +10:00