-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show the alt-enter keybinding at bottom of commit description view #4136
Conversation
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more Footnotes
|
A better solution would be the following: diff --git a/pkg/gui/controllers/commit_description_controller.go b/pkg/gui/controllers/commit_description_controller.go
index 9f1fe78e5..0f5b84577 100644
--- a/pkg/gui/controllers/commit_description_controller.go
+++ b/pkg/gui/controllers/commit_description_controller.go
@@ -33,8 +33,10 @@ func (self *CommitDescriptionController) GetKeybindings(opts types.KeybindingsOp
Handler: self.close,
},
{
- Key: opts.GetKey(opts.Config.Universal.ConfirmInEditor),
- Handler: self.confirm,
+ Key: opts.GetKey(opts.Config.Universal.ConfirmInEditor),
+ Handler: self.confirm,
+ DisplayOnScreen: true,
+ Description: self.c.Tr.Confirm,
},
{
Key: opts.GetKey(opts.Config.CommitMessage.CommitMenu),
|
Hm, is that really better? I find the change of the bottom line quite hard to notice in this case. Also, if we do that than we should also move the existing ones ( BTW, and unrelated: the bottom line says |
Here's a PR that fixes that last point above: #4143. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough, LGTM
It was hard to discover, this should make it more obvious.
0bf42d9
to
bf93395
Compare
It wasn't really obvious how to commit when the focus is in the commit description view, since pressing enter inserts a newline there. To improve this, show the
<a-enter>
keybinding at the bottom of the description view when it is focused.Fixes #4134.