jesseduffield.lazygit/pkg/gui
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
..
constants move window arrangement helper 2023-04-30 13:19:53 +10:00
context Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10:00
controllers Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10:00
filetree fix could-not-access error 2022-11-11 12:30:14 +11:00
keybindings Make arrows consistent (#2501) 2023-03-18 11:32:44 +11:00
mergeconflicts migrate patch building tests 2023-02-25 21:37:16 +11:00
modes refactor cherry pick code to move state access out of helper 2023-04-30 13:19:53 +10:00
patch_exploring refactor patch code 2023-03-19 16:30:39 +11:00
popup lots of changes 2023-04-30 13:19:53 +10:00
presentation Begin refactoring gui 2023-04-30 13:19:52 +10:00
services/custom_commands appease linter 2023-04-30 13:19:53 +10:00
status lots of changes 2023-04-30 13:19:53 +10:00
style fix: fix default color to be white 2023-02-03 23:36:59 +09:00
types Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10:00
background.go Begin refactoring gui 2023-04-30 13:19:52 +10:00
command_log_panel.go Fix deprecated rand.Seed 2023-03-19 10:00:19 +01:00
context.go Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10:00
context_config.go move some methods 2023-04-30 13:19:53 +10:00
controllers.go Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10:00
dummies.go feat: add GitVersion struct 2022-12-30 20:01:14 +09:00
editors.go Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10:00
extras_panel.go lots of changes 2023-04-30 13:19:53 +10:00
file_watching.go Begin refactoring gui 2023-04-30 13:19:52 +10:00
global_handlers.go move more actions into controller 2023-04-30 13:19:53 +10:00
gui.go Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10:00
gui_common.go Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10:00
gui_driver.go lots more refactoring 2023-04-30 13:19:53 +10:00
information_panel.go lots of changes 2023-04-30 13:19:53 +10:00
keybindings.go ensure initial context is set when entering submodule 2023-04-30 13:19:53 +10:00
layout.go move some methods 2023-04-30 13:19:53 +10:00
main_panels.go appease linter 2023-04-30 13:19:53 +10:00
menu_panel.go lots more refactoring 2023-04-30 13:19:53 +10:00
options_map.go split context common from helper common 2023-04-30 13:19:53 +10:00
pty.go Make sure scrollbars have the right size initially 2023-03-21 18:26:18 +01:00
pty_windows.go Format code to pass lint 2021-09-16 21:38:43 +08:00
recent_repos_panel.go Begin refactoring gui 2023-04-30 13:19:52 +10:00
searching.go Begin refactoring gui 2023-04-30 13:19:52 +10:00
tasks_adapter.go Begin refactoring gui 2023-04-30 13:19:52 +10:00
test_mode.go remove old integration test recording code 2023-03-24 18:42:11 +11:00
view_helpers.go lots more refactoring 2023-04-30 13:19:53 +10:00
views.go Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10:00