]> git.ipfire.org Git - thirdparty/git.git/commit
git-gui: add hotkeys to set widget focus
authorBirger Skogeng Pedersen <birger.sp@gmail.com>
Wed, 4 Sep 2019 14:30:55 +0000 (16:30 +0200)
committerPratyush Yadav <me@yadavpratyush.com>
Tue, 10 Sep 2019 19:16:21 +0000 (00:46 +0530)
commite07446ed5ff8b1c291a5c4ba2783bb8c0aa9741a
treecf89a9ff46de8051c57b2650e5aeff8e0addb13f
parent5ab72271e16ac23c269f5019a74a7b1d65170e47
git-gui: add hotkeys to set widget focus

The user cannot change focus between the list of files, the diff view and
the commit message widgets without using the mouse (clicking either of
the four widgets).

With this patch, the user may set ui focus to the previously selected path
in either the "Unstaged Changes" or "Staged Changes" widgets, using
ALT+1 or ALT+2.

The user may also set the ui focus to the diff view widget with
ALT+3, or to the commit message widget with ALT+4.

This enables the user to select/unselect files, view the diff and create a
commit in git-gui using keyboard-only.

Signed-off-by: Birger Skogeng Pedersen <birger.sp@gmail.com>
Signed-off-by: Pratyush Yadav <me@yadavpratyush.com>
git-gui.sh