gitk: Make vi-style keybindings more vi-like
commit811c70fc8369cfeae2f1e843c695c37e3b0c3109
authorJonathan Nieder <jrnieder@gmail.com>
Mon, 19 Sep 2011 16:49:50 +0000 (19 11:49 -0500)
committerPaul Mackerras <paulus@samba.org>
Sat, 8 Oct 2011 07:01:54 +0000 (8 18:01 +1100)
tree66d01cc1090de14d6095cf08e7d8b27717b2efb5
parentde665fd3cfee674a62818246dfb158ecf81b2b76
gitk: Make vi-style keybindings more vi-like

When commit 6e2dda35 (Add new keybindings, 2005-09-22) added vi-style
keybindings to gitk (an excellent idea!), instead of adopting the
usual "hjkl = left, down, up, right" bindings used by less, vi, rogue,
and many other programs, it used "ijkl = up, left, down, right" to
mimic the inverted-T formation of the arrow keys on a qwerty keyboard,
in the style of Lode runner.  So using 'j' and 'k' to scroll through
commits produces utterly confusing results to the vi user, as 'k'
moves down and 'j' moves to the previous commit.

Luckily most non-vi-users are probably using an alternate set of keys
(cursor keys or z/x + n/p) anyway.  Switch to the expected vi/nethack
convention.

Requested-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk