From: Birger Skogeng Pedersen <birgersp@gmail.com>
To: git@vger.kernel.org
Cc: Birger Skogeng Pedersen <birgersp@gmail.com>
Subject: [PATCH v2] git-gui: bind CTRL/CMD+numpad ENTER to do_commit
Date: Fri, 2 Mar 2018 11:01:48 +0100 [thread overview]
Message-ID: <20180302100148.23899-1-birgersp@gmail.com> (raw)
In-Reply-To: <CAGr--=JqXhwEtOrs0K3cscVa=LV75ejz=TYKtV7mgrd_96Jk6w@mail.gmail.com>
CTRL/CMD+ENTER is bound to do_commit, but this did not apply for the
(numpad ENTER) key. To enable CTRL/CMD+ENTER and CTRL/CMD+(numpad ENTER)
to yield the same behaviour, CTRL/CMD+(numpad enter) has also been bound
to do_commit.
Signed-off-by: Birger Skogeng Pedersen <birgersp@gmail.com>
---
git-gui/git-gui.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/git-gui/git-gui.sh b/git-gui/git-gui.sh
index 91c00e648..6de74ce63 100755
--- a/git-gui/git-gui.sh
+++ b/git-gui/git-gui.sh
@@ -3867,6 +3867,7 @@ bind . <$M1B-Key-equal> {show_more_context;break}
bind . <$M1B-Key-plus> {show_more_context;break}
bind . <$M1B-Key-KP_Add> {show_more_context;break}
bind . <$M1B-Key-Return> do_commit
+bind . <$M1B-Key-KP_Enter> do_commit
foreach i [list $ui_index $ui_workdir] {
bind $i <Button-1> { toggle_or_diff click %W %x %y; break }
bind $i <$M1B-Button-1> { add_one_to_selection %W %x %y; break }
--
2.16.2.270.gdc6133cf5
prev parent reply other threads:[~2018-03-02 10:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-01 14:25 git-gui: CTRL/CMD + numpad ENTER does not invoke same command as "regular" ENTER Birger Skogeng Pedersen
2018-03-01 14:39 ` [PATCH] git-gui: bind CTRL/CMD+numpad ENTER to do_commit Birger Skogeng Pedersen
2018-03-01 18:31 ` Eric Sunshine
2018-03-02 9:56 ` Birger Skogeng Pedersen
2018-03-02 10:01 ` Birger Skogeng Pedersen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180302100148.23899-1-birgersp@gmail.com \
--to=birgersp@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).