jesseduffield.lazygit/pkg/gui/context
Jesse Duffield a5f3515ad8 Set groundwork for better disabled reasons with range select
Something dumb that we're currently doing is expecting list items
to define an ID method which returns a string. We use that when copying
items to clipboard with ctrl+o and when getting a ref name for diffing.

This commit gets us a little deeper into that hole by explicitly requiring
list items to implement that method so that we can easily use the new
helper functions in list_controller_trait.go.

In future we need to just remove the whole ID thing entirely but I'm too
lazy to do that right now.
2024-01-23 13:03:37 +11:00
..
traits Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
base_context.go Rerender certain views when their width changes 2023-10-16 09:03:07 +02:00
branches_context.go Set groundwork for better disabled reasons with range select 2024-01-23 13:03:37 +11:00
commit_files_context.go Set groundwork for better disabled reasons with range select 2024-01-23 13:03:37 +11:00
commit_message_context.go Mention ctrl+o binding in commit message sub title 2023-08-21 10:03:34 +02:00
confirmation_context.go split context common from helper common 2023-04-30 13:19:53 +10:00
context.go Layout the bottom line view using spacer views 2023-12-09 11:18:28 +01: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 When refreshing models, re-apply active filter for the corresponding view 2023-10-10 08:37:30 +02:00
filtered_list_view_model.go Set groundwork for better disabled reasons with range select 2024-01-23 13:03:37 +11:00
history_trait.go Add search history 2023-09-20 08:35:41 +03:00
list_context_trait.go Disable range-select in menu and suggestions view 2024-01-19 10:50:49 +11:00
list_renderer.go Add a mechanism to insert non-model items into list contexts 2023-08-29 08:04:47 +02:00
list_renderer_test.go Set groundwork for better disabled reasons with range select 2024-01-23 13:03:37 +11:00
list_view_model.go Set groundwork for better disabled reasons with range select 2024-01-23 13:03:37 +11:00
local_commits_context.go Set groundwork for better disabled reasons with range select 2024-01-23 13:03:37 +11:00
menu_context.go Set groundwork for better disabled reasons with range select 2024-01-23 13:03:37 +11:00
merge_conflicts_context.go Standardise display of range selection across views 2024-01-19 10:47:21 +11:00
parent_context_mgr.go refactor contexts code 2022-03-17 19:13:40 +11:00
patch_explorer_context.go Standardise display of range selection across views 2024-01-19 10:47:21 +11:00
reflog_commits_context.go Set groundwork for better disabled reasons with range select 2024-01-23 13:03:37 +11:00
remote_branches_context.go Set groundwork for better disabled reasons with range select 2024-01-23 13:03:37 +11:00
remotes_context.go Set groundwork for better disabled reasons with range select 2024-01-23 13:03:37 +11:00
search_trait.go Don't select current search result when showing search status 2023-09-25 16:37:59 +10:00
setup.go Layout the bottom line view using spacer views 2023-12-09 11:18:28 +01:00
simple_context.go remove context callback opts 2023-04-30 13:19:53 +10:00
stash_context.go Set groundwork for better disabled reasons with range select 2024-01-23 13:03:37 +11:00
sub_commits_context.go Set groundwork for better disabled reasons with range select 2024-01-23 13:03:37 +11:00
submodules_context.go Set groundwork for better disabled reasons with range select 2024-01-23 13:03:37 +11:00
suggestions_context.go Set groundwork for better disabled reasons with range select 2024-01-23 13:03:37 +11:00
tags_context.go Set groundwork for better disabled reasons with range select 2024-01-23 13:03:37 +11:00
view_trait.go Add range selection ability on list contexts 2024-01-19 10:47:21 +11:00
working_tree_context.go Set groundwork for better disabled reasons with range select 2024-01-23 13:03:37 +11:00
worktrees_context.go Set groundwork for better disabled reasons with range select 2024-01-23 13:03:37 +11:00