jesseduffield.lazygit/pkg/gui/controllers
Stefan Haller 442592a149 Show diff for range selection in commits and sub-commits panel
In other views that show lists of commits (reflog and stash) it doesn't make
sense to show a range diff of selected entries because they don't form a linear
sequence, so we keep the previous behavior of showing the diff for the free end
of the selection range in those view.

The same applies to the commits view if the selection range includes rebasing
todos; these can have an arbitrary order, and a range diff doesn't make sense
for those.
2024-08-28 19:35:23 +02:00
..
helpers Show diff for range selection in commits and sub-commits panel 2024-08-28 19:35:23 +02:00
attach.go Begin refactoring gui 2023-04-30 13:19:52 +10:00
base_controller.go Begin refactoring gui 2023-04-30 13:19:52 +10:00
basic_commits_controller.go Change direct access to Common.UserConfig to a getter 2024-08-18 10:24:52 +02:00
bisect_controller.go Return error from RefreshOptions.Then 2024-04-18 10:10:30 +02:00
branches_controller.go Use print instead of printf when there are no arguments 2024-08-27 10:33:06 +02:00
command_log_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
commit_description_controller.go Allow switching between commit message and description by clicking 2024-08-24 10:21:30 +02:00
commit_message_controller.go Allow switching between commit message and description by clicking 2024-08-24 10:21:30 +02:00
commits_files_controller.go Bugfix: more comprehensive check whether custom patch must be reset 2024-08-28 18:27:52 +02:00
common.go lots of changes 2023-04-30 13:19:53 +10:00
confirmation_controller.go Change direct access to Common.UserConfig to a getter 2024-08-18 10:24:52 +02:00
context_lines_controller.go Replace CurrentStaticContext() with Context().CurrentStatic() 2024-08-17 11:14:51 +02:00
custom_patch_options_menu_action.go Replace CurrentContext() with Context().Current() 2024-08-17 11:14:51 +02:00
diffing_menu_action.go Remove redundant variable dedeclarations 2024-05-19 16:38:21 +10:00
files_controller.go Don't stage already staged deleted items 2024-08-24 09:36:44 +10:00
filter_controller.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
filtering_menu_action.go Replace CurrentSideContext() with Context().CurrentSide() 2024-08-17 11:14:51 +02:00
git_flow_controller.go Remove ErrorMsg 2024-04-18 10:10:30 +02:00
global_controller.go Rename "Custom Command" to "Shell Command" 2024-08-17 10:56:03 +02:00
jump_to_side_window_controller.go Replace PushContext() with Context().Push() 2024-08-17 11:14:50 +02:00
list_controller.go Change direct access to Common.UserConfig to a getter 2024-08-18 10:24:52 +02:00
list_controller_trait.go Remove ErrorMsg 2024-04-18 10:10:30 +02:00
local_commits_controller.go Show diff for range selection in commits and sub-commits panel 2024-08-28 19:35:23 +02:00
local_commits_controller_test.go Keep the same line selected after squashing fixup commits 2024-03-09 07:55:22 +01:00
menu_controller.go Replace PopContext() with Context().Pop() 2024-08-17 11:14:50 +02:00
merge_conflicts_controller.go Change direct access to Common.UserConfig to a getter 2024-08-18 10:24:52 +02:00
options_menu_action.go Replace CurrentContext() with Context().Current() 2024-08-17 11:14:51 +02:00
patch_building_controller.go Display more keybindings on-screen 2024-01-28 08:33:13 +11:00
patch_explorer_controller.go Cleanup: move SetLineSelectMode into AdjustSelectedLineIdx 2024-08-24 10:56:20 +02:00
quit_actions.go Change direct access to Common.UserConfig to a getter 2024-08-18 10:24:52 +02:00
reflog_commits_controller.go rename sha to hash 2024-04-12 08:33:47 +02:00
remote_branches_controller.go Make opening git difftool more consistent 2024-06-30 10:27:28 +02:00
remotes_controller.go Replace PushContext() with Context().Push() 2024-08-17 11:14:50 +02:00
rename_similarity_threshold_controller.go Replace CurrentStaticContext() with Context().CurrentStatic() 2024-08-17 11:14:51 +02:00
screen_mode_actions.go Rerender fewer views when their width changes 2024-06-23 13:10:48 +02:00
scroll_off_margin.go Replace min/max helpers with built-in min/max 2024-04-07 23:24:10 +08:00
scroll_off_margin_test.go Add tests for scroll-off margin of zero 2023-08-21 08:10:28 +02:00
search_controller.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
search_prompt_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
shell_command_action.go Change direct access to Common.UserConfig to a getter 2024-08-18 10:24:52 +02:00
side_window_controller.go Replace PushContext() with Context().Push() 2024-08-17 11:14:50 +02:00
snake_controller.go Replace PushContext() with Context().Push() 2024-08-17 11:14:50 +02:00
staging_controller.go Change direct access to Common.UserConfig to a getter 2024-08-18 10:24:52 +02:00
stash_controller.go Change direct access to Common.UserConfig to a getter 2024-08-18 10:24:52 +02:00
status_controller.go Use our new hyperlink support in the status panel 2024-08-24 10:36:01 +02:00
sub_commits_controller.go Show diff for range selection in commits and sub-commits panel 2024-08-28 19:35:23 +02:00
submodules_controller.go Replace PushContext() with Context().Push() 2024-08-17 11:14:50 +02:00
suggestions_controller.go Replace ReplaceContext() with Context().Replace() 2024-08-17 11:14:50 +02:00
switch_to_diff_files_controller.go Bugfix: don't allow dropping patches from a custom patch that was made in diffing mode 2024-08-28 18:27:52 +02:00
switch_to_sub_commits_controller.go Set groundwork for better disabled reasons with range select 2024-01-23 13:03:37 +11:00
sync_controller.go Change direct access to Common.UserConfig to a getter 2024-08-18 10:24:52 +02:00
tags_controller.go Replace PushContext() with Context().Push() 2024-08-17 11:14:50 +02:00
toggle_whitespace_action.go Replace CurrentSideContext() with Context().CurrentSide() 2024-08-17 11:14:51 +02:00
undo_controller.go chore: fix some comments and typos 2024-04-28 09:44:59 +02:00
vertical_scroll_controller.go Change direct access to Common.UserConfig to a getter 2024-08-18 10:24:52 +02:00
workspace_reset_controller.go Change direct access to Common.UserConfig to a getter 2024-08-18 10:24:52 +02:00
worktree_options_controller.go Set groundwork for better disabled reasons with range select 2024-01-23 13:03:37 +11:00
worktrees_controller.go Remove ErrorMsg 2024-04-18 10:10:30 +02:00