lazygit/pkg/gui/context
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
..
traits do not highlight line if there are no items to display 2022-04-16 15:19:32 +10:00
base_context.go Begin refactoring gui 2023-04-30 13:19:52 +10:00
basic_view_model.go use generics to DRY up context code 2022-03-19 12:12:57 +11:00
branches_context.go split context common from helper common 2023-04-30 13:19:53 +10:00
commit_files_context.go fix rendering of commit files view 2023-04-30 13:19:53 +10:00
commit_message_context.go Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10:00
confirmation_context.go split context common from helper common 2023-04-30 13:19:53 +10:00
context.go Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10:00
context_common.go split context common from helper common 2023-04-30 13:19:53 +10:00
dynamic_title_builder.go show namesake for child views 2022-03-26 18:00:46 +11:00
list_context_trait.go move more actions into controller 2023-04-30 13:19:53 +10:00
local_commits_context.go split context common from helper common 2023-04-30 13:19:53 +10:00
menu_context.go split context common from helper common 2023-04-30 13:19:53 +10:00
merge_conflicts_context.go split context common from helper common 2023-04-30 13:19:53 +10:00
parent_context_mgr.go refactor contexts code 2022-03-17 19:13:40 +11:00
patch_explorer_context.go move more actions into controller 2023-04-30 13:19:53 +10:00
reflog_commits_context.go split context common from helper common 2023-04-30 13:19:53 +10:00
remote_branches_context.go split context common from helper common 2023-04-30 13:19:53 +10:00
remotes_context.go split context common from helper common 2023-04-30 13:19:53 +10:00
setup.go Split commit message panel into commit summary and commit description panel 2023-04-30 13:19:53 +10:00
simple_context.go remove context callback opts 2023-04-30 13:19:53 +10:00
stash_context.go split context common from helper common 2023-04-30 13:19:53 +10:00
sub_commits_context.go split context common from helper common 2023-04-30 13:19:53 +10:00
submodules_context.go split context common from helper common 2023-04-30 13:19:53 +10:00
suggestions_context.go split context common from helper common 2023-04-30 13:19:53 +10:00
tags_context.go split context common from helper common 2023-04-30 13:19:53 +10:00
view_trait.go refactor to only have one context per view 2022-08-06 13:49:11 +10:00
viewport_list_context_trait.go add scrollbars 2022-04-16 17:29:17 +10:00
working_tree_context.go split context common from helper common 2023-04-30 13:19:53 +10:00