1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-14 11:23:09 +02:00
lazygit/pkg/gui/controllers
Stefan Haller 98e6c119f5 Select same commit again after pressing "e" to edit a commit
When editing a commit, the index of the current commit can change; for example,
when merge commits are involved, or when working with stacked branches where
"update-ref" commands may be added above the selected commit.

Reselect the current commit after pressing "e"; this requires doing the refresh
blocking on the main thread. (Another option that I considered was to use a
SYNC refresh, and then select the new line with an OnUIThread inside the Then
function. This also works, but results in a very visible lag.)
2023-08-22 14:08:12 +02:00
..
helpers Select same commit again after pressing "e" to edit a commit 2023-08-22 14:08:12 +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 Use sentence case everywhere 2023-05-25 23:52:19 +10:00
bisect_controller.go When bisecting, always mark the current commit as good/bad, not the selected 2023-07-29 14:44:00 +02:00
branches_controller.go Allow deleting remote tags/branches from local tag/branch views (#2738) 2023-08-10 17:39:26 +10:00
command_log_controller.go lots of changes 2023-04-30 13:19:53 +10:00
commit_description_controller.go Add key binding for switching from the commit message panel to an editor 2023-08-21 10:03:34 +02:00
commit_message_controller.go Add key binding for switching from the commit message panel to an editor 2023-08-21 10:03:34 +02:00
commits_files_controller.go Move IgnoreWhitespaceInDiffView to AppState, and persist it when it changes 2023-07-31 11:41:55 +02:00
common.go lots of changes 2023-04-30 13:19:53 +10:00
confirmation_controller.go Use sentence case everywhere 2023-05-25 23:52:19 +10:00
context_lines_controller.go lots of changes 2023-04-30 13:19:53 +10: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 Show error when trying to open patch menu with an empty patch 2023-07-26 14:27:18 +02:00
diffing_menu_action.go fix: typo EnteRefName 2023-06-28 18:54:21 +06:00
files_controller.go Move IgnoreWhitespaceInDiffView to AppState, and persist it when it changes 2023-07-31 11:41:55 +02:00
files_remove_controller.go Refresh work trees when discarding file changes 2023-07-30 18:35:22 +10:00
filter_controller.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
filtering_menu_action.go Use sentence case everywhere 2023-05-25 23:52:19 +10:00
git_flow_controller.go Use sentence case everywhere 2023-05-25 23:52:19 +10:00
global_controller.go Use sentence case everywhere 2023-05-25 23:52:19 +10:00
jump_to_side_window_controller.go move side window actions to controllers package 2023-04-30 13:19:53 +10:00
list_controller.go Pass UserConfig to checkScrollUp/Down instead of just the scrollOffMargin 2023-08-21 08:10:28 +02:00
local_commits_controller.go Select same commit again after pressing "e" to edit a commit 2023-08-22 14:08:12 +02:00
menu_controller.go Fix crash on empty menu 2023-07-20 21:05:52 +10:00
merge_conflicts_controller.go Moves log related translations into its own Tr.Log. namespace 2023-07-31 19:42:41 -04:00
options_menu_action.go Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
patch_building_controller.go Use sentence case everywhere 2023-05-25 23:52:19 +10:00
patch_explorer_controller.go Pass UserConfig to checkScrollUp/Down instead of just the scrollOffMargin 2023-08-21 08:10:28 +02:00
quit_actions.go Update repo switch logic 2023-07-30 18:35:23 +10:00
reflog_commits_controller.go Move IgnoreWhitespaceInDiffView to AppState, and persist it when it changes 2023-07-31 11:41:55 +02:00
remote_branches_controller.go Allow deleting remote tags/branches from local tag/branch views (#2738) 2023-08-10 17:39:26 +10:00
remotes_controller.go Use an interface for tasks instead of a concrete struct 2023-07-10 17:12:21 +10:00
screen_mode_actions.go move more actions into controller 2023-04-30 13:19:53 +10:00
scroll_off_margin_test.go Add tests for scroll-off margin of zero 2023-08-21 08:10:28 +02:00
scroll_off_margin.go Add scrollOffEnabled config 2023-08-21 09:03:45 +02:00
search_controller.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
search_prompt_controller.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
side_window_controller.go move side window actions to controllers package 2023-04-30 13:19:53 +10:00
snake_controller.go lots of changes 2023-04-30 13:19:53 +10:00
staging_controller.go Rename "Delete change" menu entry to "Discard change" in staging panel 2023-06-26 08:19:58 +02:00
stash_controller.go Move IgnoreWhitespaceInDiffView to AppState, and persist it when it changes 2023-07-31 11:41:55 +02:00
status_controller.go Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
sub_commits_controller.go Move IgnoreWhitespaceInDiffView to AppState, and persist it when it changes 2023-07-31 11:41:55 +02:00
submodules_controller.go Move IgnoreWhitespaceInDiffView to AppState, and persist it when it changes 2023-07-31 11:41:55 +02:00
suggestions_controller.go lots of changes 2023-04-30 13:19:53 +10:00
switch_to_diff_files_controller.go Use searching, not filtering, in file tree views 2023-07-03 12:54:14 +10:00
switch_to_sub_commits_controller.go Fix yellow/red coloring while rebasing 2023-08-19 09:26:27 +02:00
sync_controller.go Show correct keybindings in force-push prompt 2023-07-31 11:38:52 +02:00
tags_controller.go Allow deleting remote tags/branches from local tag/branch views (#2738) 2023-08-10 17:39:26 +10:00
toggle_whitespace_action.go Move IgnoreWhitespaceInDiffView to AppState, and persist it when it changes 2023-07-31 11:41:55 +02:00
types.go introduce Ref interface 2022-04-02 17:04:42 +11:00
undo_controller.go Replace uses of "git stash save" with "git stash push" 2023-07-10 15:09:17 +02: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 Support creating worktrees from refs 2023-07-30 18:35:22 +10:00
worktrees_controller.go Use fields rather than methods on worktrees 2023-07-30 18:35:24 +10:00