1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-14 11:23:09 +02:00
lazygit/pkg/gui/context
Jesse Duffield a5ee61c117 Properly fix accordion issue
The true issue was that we were focusing the line in the view before it gets resized in the layout function.
This meant if the view was squashed in accordion mode, the view wouldn't know how to set the cursor/origin to
focus the line.

Now we've got a queue of 'after layout' functions i.e. functions to call at the end of the layout function,
right before views are drawn.

The only caveat is that we can't have an infinite buffer so we're arbitrarily capping it at 1000 and dropping
functions if we exceed that limit. But that really should never happen.
2023-07-19 21:16:27 +10: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 Introduce filtered list view model 2023-07-03 12:54:13 +10:00
commit_files_context.go Use searching, not filtering, in file tree views 2023-07-03 12:54:14 +10:00
commit_message_context.go Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10:00
confirmation_context.go split context common from helper common 2023-04-30 13:19:53 +10:00
context_common.go split context common from helper common 2023-04-30 13:19:53 +10:00
context.go Split commit message panel into commit summary and commit description panel 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_view_model.go Scroll to top when filtering and retain selection when cancelling filter 2023-07-03 12:54:14 +10:00
filtered_list.go Add mutex to filtered list to avoid concurrency issues 2023-07-03 12:54:14 +10:00
list_context_trait.go Properly fix accordion issue 2023-07-19 21:16:27 +10:00
list_view_model.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
local_commits_context.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
menu_context.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
merge_conflicts_context.go split context common from helper common 2023-04-30 13:19:53 +10:00
parent_context_mgr.go
patch_explorer_context.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
reflog_commits_context.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
remote_branches_context.go Introduce filtered list view model 2023-07-03 12:54:13 +10: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 Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +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 Introduce filtered list view model 2023-07-03 12:54:13 +10: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 Introduce filtered list view model 2023-07-03 12:54:13 +10:00
view_trait.go refactor to only have one context per view 2022-08-06 13:49:11 +10:00
working_tree_context.go Use searching, not filtering, in file tree views 2023-07-03 12:54:14 +10:00