Re: [PATCH] git-gui: Add hotkeys to change focus between ui widgets
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 6, 2018, 19:28 UTC
- Message-ID
- <xmqqbmg13sxq.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <CAGr--=+cAbd=8NDu5M8dbeWn=uoevhJjSvN+bgfDPWjA=V0KnQ@mail.gmail.com>
Birger Skogeng Pedersen <birgersp@gmail.com> writes:
Show 8 quoted lines
> Thanks for the feedback. > > On Mon, Mar 5, 2018 at 5:55 PM, Johannes Schindelin > <Johannes.Schindelin@gmx.de> wrote: >> Do you think there is a way to focus on the last-selected path? That would >> make this feature even more convenient, I think. > > Yes, good idea. I'll implement it and create a second version.
Please make it a patch against the main git-gui project, not against our tree. That is, your patch text would look like this:
diff --git a/git-gui.sh b/git-gui.sh
index 5bc21b878d..39e80ebafa 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -3843,6 +3843,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 }We've seen three patches to git-gui from three different people in the past week. The project seems to be abandoned and we need to find a volunteer (or a few) to take it over, it seems. In the meantime I have blindly been picking and queuing git-gui changes but because I am not even a casual user of it, I know I will not do a good job maintaining it in the longer term.