jesseduffield.lazygit/pkg/gui/controllers
Sean 49da7b482d 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 12:17:34 +10:00
..
helpers Split commit message panel into commit summary and commit description panel 2023-04-30 12:17:34 +10:00
attach.go fix click handling 2022-03-17 19:13:40 +11:00
base_controller.go fix click handling 2022-03-17 19:13:40 +11:00
basic_commits_controller.go rename displayString to label for menu items 2022-05-08 14:26:18 +10:00
bisect_controller.go refactor to only have one context per view 2022-08-06 13:49:11 +10:00
branches_controller.go feat: support to create tag on branch 2023-02-19 23:31:46 +09:00
commit_description_controller.go Split commit message panel into commit summary and commit description panel 2023-04-30 12:17:34 +10:00
commit_message_controller.go Split commit message panel into commit summary and commit description panel 2023-04-30 12:17:34 +10:00
commits_files_controller.go rename patch manager to patch builder 2023-03-19 16:35:57 +11:00
common.go add optimistic rendering for staging and unstaging files 2022-07-31 14:34:57 +10:00
context_lines_controller.go rename patch manager to patch builder 2023-03-19 16:35:57 +11:00
files_controller.go Split commit message panel into commit summary and commit description panel 2023-04-30 12:17:34 +10:00
files_remove_controller.go mention path in tooltips 2023-02-20 19:28:45 +11:00
git_flow_controller.go rename displayString to label for menu items 2022-05-08 14:26:18 +10:00
global_controller.go Don't add custom command to history if it starts with space 2023-04-13 21:20:46 +10:00
list_controller.go refactor to only have one context per view 2022-08-06 13:49:11 +10:00
local_commits_controller.go Split commit message panel into commit summary and commit description panel 2023-04-30 12:17:34 +10:00
menu_controller.go Remove alternative confirmation and return keymappings 2023-03-09 10:32:00 +01:00
merge_conflicts_controller.go Remove line number support for "open" command 2023-04-13 13:14:00 +02:00
patch_building_controller.go Remove line number support for "open" command 2023-04-13 13:14:00 +02:00
patch_explorer_controller.go refactor to only have one context per view 2022-08-06 13:49:11 +10:00
remote_branches_controller.go Remove alternative confirmation and return keymappings 2023-03-09 10:32:00 +01:00
remotes_controller.go pkg/gui: Rename IPopupHandler::Ask() to Confirm() 2022-03-30 20:13:43 +11:00
snake_controller.go Remove alternative confirmation and return keymappings 2023-03-09 10:32:00 +01:00
staging_controller.go Remove line number support for "open" command 2023-04-13 13:14:00 +02:00
stash_controller.go chore: refactor rename stash 2022-10-16 09:30:04 +09:00
submodules_controller.go integrate snake game into lazygit 2022-12-30 12:18:59 +11:00
switch_to_diff_files_controller.go introduce Ref interface 2022-04-02 17:04:42 +11:00
switch_to_sub_commits_controller.go feat(subcommits): load unlimited sub-commits 2023-02-27 15:29:00 +09:00
sync_controller.go rename key to Pull 2023-02-19 11:42:00 +11:00
tags_controller.go pkg/gui: Rename IPopupHandler::Ask() to Confirm() 2022-03-30 20:13:43 +11:00
types.go introduce Ref interface 2022-04-02 17:04:42 +11:00
undo_controller.go migrate undo test 2023-02-19 15:48:09 +11:00
vertical_scroll_controller.go fix(#2309): fix diff scroll 2022-12-20 22:25:49 +09:00
workspace_reset_controller.go Make discarding items less error prone 2023-02-20 19:28:45 +11:00