1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-12 11:15:00 +02:00
lazygit/pkg/gui/context
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
..
traits do not highlight line if there are no items to display 2022-04-16 15:19:32 +10:00
base_context.go update view cursor when selecting new line in patch explorer view 2023-02-18 10:19:34 +11:00
basic_view_model.go use generics to DRY up context code 2022-03-19 12:12:57 +11:00
branches_context.go refactor to only have one context per view 2022-08-06 13:49:11 +10:00
commit_files_context.go refactor to only have one context per view 2022-08-06 13:49:11 +10:00
commit_message_context.go Split commit message panel into commit summary and commit description panel 2023-04-30 12:17:34 +10:00
context.go Split commit message panel into commit summary and commit description panel 2023-04-30 12:17:34 +10:00
dynamic_title_builder.go show namesake for child views 2022-03-26 18:00:46 +11:00
list_context_trait.go refactor to only have one context per view 2022-08-06 13:49:11 +10:00
local_commits_context.go refactor to only have one context per view 2022-08-06 13:49:11 +10:00
menu_context.go move merge conflicts code into controller 2022-08-07 11:16:03 +10:00
merge_conflicts_context.go update view cursor when selecting new line in patch explorer view 2023-02-18 10:19:34 +11:00
parent_context_mgr.go refactor contexts code 2022-03-17 19:13:40 +11:00
patch_explorer_context.go update view cursor when selecting new line in patch explorer view 2023-02-18 10:19:34 +11:00
reflog_commits_context.go refactor to only have one context per view 2022-08-06 13:49:11 +10:00
remote_branches_context.go refactor to only have one context per view 2022-08-06 13:49:11 +10:00
remotes_context.go refactor to only have one context per view 2022-08-06 13:49:11 +10:00
simple_context.go update view cursor when selecting new line in patch explorer view 2023-02-18 10:19:34 +11:00
stash_context.go refactor to only have one context per view 2022-08-06 13:49:11 +10:00
sub_commits_context.go feat(subcommits): load unlimited sub-commits 2023-02-27 15:29:00 +09:00
submodules_context.go refactor to only have one context per view 2022-08-06 13:49:11 +10:00
suggestions_context.go fix hidden suggestions 2022-08-07 19:20:02 +10:00
tags_context.go refactor to only have one context per view 2022-08-06 13:49:11 +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 refactor to only have one context per view 2022-08-06 13:49:11 +10:00