jesseduffield.lazygit/pkg/gui/controllers
Stefan Haller 2c9b4770bc Keep same branch selected when refreshing branches
This wasn't necessary before, because the only available branch sorting option
was by recency, so the sort order couldn't change except by checking out
branches. Now, you can sort by committer date, so the branch order can change by
fetching; in this case it's important to keep the same branch selected. One
important use case is to rebase the checked-out branch onto master; you select
master, press "f" to fetch it (this can now change its position in the list),
and then press "r" to rebase. To make this work smoothly it's important to keep
master selected after pressing "f".
2024-01-19 09:25:07 +01:00
..
helpers Keep same branch selected when refreshing branches 2024-01-19 09:25:07 +01: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 Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
bisect_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
branches_controller.go Keep same branch selected when refreshing branches 2024-01-19 09:25:07 +01:00
command_log_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
commit_description_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
commit_message_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
commits_files_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
common.go lots of changes 2023-04-30 13:19:53 +10:00
confirmation_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
context_lines_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
custom_command_action.go Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
custom_patch_options_menu_action.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
diffing_menu_action.go fix: typo EnteRefName 2023-06-28 18:54:21 +06:00
files_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
files_remove_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
filter_controller.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
filtering_menu_action.go Add SetSelection function for list contexts and use it in most places 2024-01-19 10:47:21 +11:00
git_flow_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
global_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
jump_to_side_window_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
list_controller.go Disable range-select in menu and suggestions view 2024-01-19 10:50:49 +11:00
list_controller_trait.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
local_commits_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
menu_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
merge_conflicts_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
options_menu_action.go Do not include keybindings from another view in keybindings menu 2024-01-15 20:08:11 +11:00
patch_building_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
patch_explorer_controller.go Support non-sticky range selection in patch explorer views 2024-01-19 10:47:21 +11:00
quit_actions.go Clear range select upon pressing 'escape' 2024-01-19 10:47:21 +11:00
reflog_commits_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
remote_branches_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
remotes_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
screen_mode_actions.go Remove special code to rerender views on screen mode change 2023-10-16 09:03:07 +02:00
scroll_off_margin.go Add scrollOffEnabled config 2023-08-21 09:03:45 +02: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
side_window_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
snake_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
staging_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
stash_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
status_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
sub_commits_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
submodules_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
suggestions_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
switch_to_diff_files_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
switch_to_sub_commits_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
sync_controller.go Make DisabledReason a struct 2024-01-14 17:45:35 +01:00
tags_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
toggle_whitespace_action.go Extract a SaveAppStateAndLogError function 2023-09-04 17:50:49 +02:00
types.go introduce Ref interface 2022-04-02 17:04:42 +11:00
undo_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
vertical_scroll_controller.go lots of changes 2023-04-30 13:19:53 +10:00
workspace_reset_controller.go Reset origin when clearing view 2023-08-08 22:01:43 +10:00
worktree_options_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
worktrees_controller.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00