jesseduffield.lazygit/pkg/gui/controllers
Sean 9d68b287db Split commit message panel into commit summary and commit description panel
When we use the one panel for the entire commit message, its tricky to have a keybinding both for adding a newline and submitting.
By having two panels: one for the summary line and one for the description, we allow for 'enter' to submit the message when done from the summary panel,
and 'enter' to add a newline when done from the description panel. Alt-enter, for those who can use that key combo, also works for submitting the message
from the description panel. For those who can't use that key combo, and don't want to remap the keybinding, they can hit tab to go back to the summary panel
and then 'enter' to submit the message.

We have some awkwardness in that both contexts (i.e. panels) need to appear and disappear in tandem and we don't have a great way of handling that concept,
so we just push both contexts one after the other, and likewise remove both contexts when we escape.
2023-04-30 13:19:53 +10:00
..
helpers Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10: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 lots of changes 2023-04-30 13:19:53 +10:00
bisect_controller.go lots of changes 2023-04-30 13:19:53 +10:00
branches_controller.go lots of changes 2023-04-30 13:19:53 +10:00
command_log_controller.go lots of changes 2023-04-30 13:19:53 +10:00
commit_description_controller.go Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10:00
commit_message_controller.go Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10:00
commits_files_controller.go fix rendering of commit files view 2023-04-30 13:19:53 +10:00
common.go lots of changes 2023-04-30 13:19:53 +10:00
confirmation_controller.go lots of changes 2023-04-30 13:19:53 +10:00
context_lines_controller.go lots of changes 2023-04-30 13:19:53 +10:00
custom_command_action.go move custom command action into its own file 2023-04-30 13:19:53 +10:00
custom_patch_options_menu_action.go move custom patch options menu action to controllers package 2023-04-30 13:19:53 +10:00
diffing_menu_action.go move diffing menu action to controller 2023-04-30 13:19:53 +10:00
files_controller.go Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10:00
files_remove_controller.go lots of changes 2023-04-30 13:19:53 +10:00
filtering_menu_action.go move filtering menu action to controller 2023-04-30 13:19:53 +10:00
git_flow_controller.go lots of changes 2023-04-30 13:19:53 +10:00
global_controller.go move toggle whitespace action to controllers package 2023-04-30 13:19:53 +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 lots of changes 2023-04-30 13:19:53 +10:00
local_commits_controller.go Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10:00
menu_controller.go lots of changes 2023-04-30 13:19:53 +10:00
merge_conflicts_controller.go lots of changes 2023-04-30 13:19:53 +10:00
options_menu_action.go move another action into controller 2023-04-30 13:19:53 +10:00
patch_building_controller.go lots of changes 2023-04-30 13:19:53 +10:00
patch_explorer_controller.go lots of changes 2023-04-30 13:19:53 +10:00
quit_actions.go move quit actions to controller 2023-04-30 13:19:53 +10:00
reflog_commits_controller.go lots of changes 2023-04-30 13:19:53 +10:00
remote_branches_controller.go lots of changes 2023-04-30 13:19:53 +10:00
remotes_controller.go lots of changes 2023-04-30 13:19:53 +10:00
screen_mode_actions.go move more actions into controller 2023-04-30 13:19:53 +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 lots of changes 2023-04-30 13:19:53 +10:00
stash_controller.go lots of changes 2023-04-30 13:19:53 +10:00
status_controller.go lots of changes 2023-04-30 13:19:53 +10:00
sub_commits_controller.go lots of changes 2023-04-30 13:19:53 +10:00
submodules_controller.go lots of changes 2023-04-30 13:19:53 +10:00
suggestions_controller.go lots of changes 2023-04-30 13:19:53 +10:00
switch_to_diff_files_controller.go lots of changes 2023-04-30 13:19:53 +10:00
switch_to_sub_commits_controller.go lots of changes 2023-04-30 13:19:53 +10:00
sync_controller.go lots of changes 2023-04-30 13:19:53 +10:00
tags_controller.go lots of changes 2023-04-30 13:19:53 +10:00
toggle_whitespace_action.go move toggle whitespace action to controllers package 2023-04-30 13:19:53 +10:00
types.go introduce Ref interface 2022-04-02 17:04:42 +11:00
undo_controller.go lots of changes 2023-04-30 13:19:53 +10:00
vertical_scroll_controller.go lots of changes 2023-04-30 13:19:53 +10:00
workspace_reset_controller.go lots of changes 2023-04-30 13:19:53 +10:00