* [PATCH] make j/k move down/up in gitk (like vi)
@ 2007-04-28 3:02 Bart Trojanowski
2007-04-28 9:26 ` Martin Waitz
2007-04-29 18:13 ` Junio C Hamano
0 siblings, 2 replies; 3+ messages in thread
From: Bart Trojanowski @ 2007-04-28 3:02 UTC (permalink / raw)
To: git; +Cc: Paul Mackerras
Currently gitk has i/k bound to move up and down in the commit list. I
would like to make that more consistent with vi's j/k.
If this is not acceptable, I will investigate a git-config option for vi
compatibility mode.
---
gitk | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/gitk b/gitk
index b1c65d7..0ce4a12 100755
--- a/gitk
+++ b/gitk
@@ -711,10 +711,8 @@ proc makewindow {} {
bindkey n "selnextline 1"
bindkey z "goback"
bindkey x "goforw"
- bindkey i "selnextline -1"
- bindkey k "selnextline 1"
- bindkey j "goback"
- bindkey l "goforw"
+ bindkey k "selnextline -1"
+ bindkey j "selnextline 1"
bindkey b "$ctext yview scroll -1 pages"
bindkey d "$ctext yview scroll 18 units"
bindkey u "$ctext yview scroll -18 units"
--
1.5.2.rc0.56.g6169a
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] make j/k move down/up in gitk (like vi)
2007-04-28 3:02 [PATCH] make j/k move down/up in gitk (like vi) Bart Trojanowski
@ 2007-04-28 9:26 ` Martin Waitz
2007-04-29 18:13 ` Junio C Hamano
1 sibling, 0 replies; 3+ messages in thread
From: Martin Waitz @ 2007-04-28 9:26 UTC (permalink / raw)
To: Bart Trojanowski; +Cc: git, Paul Mackerras
[-- Attachment #1: Type: text/plain, Size: 338 bytes --]
hoi :)
On Fri, Apr 27, 2007 at 11:02:15PM -0400, Bart Trojanowski wrote:
> Currently gitk has i/k bound to move up and down in the commit list. I
> would like to make that more consistent with vi's j/k.
very nice.
if you want to keep back/forward near up/down you can use h/l, just like
left/right in vi.
--
Martin Waitz
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] make j/k move down/up in gitk (like vi)
2007-04-28 3:02 [PATCH] make j/k move down/up in gitk (like vi) Bart Trojanowski
2007-04-28 9:26 ` Martin Waitz
@ 2007-04-29 18:13 ` Junio C Hamano
1 sibling, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2007-04-29 18:13 UTC (permalink / raw)
To: Bart Trojanowski; +Cc: git, Paul Mackerras
Bart Trojanowski <bart@jukie.net> writes:
> Currently gitk has i/k bound to move up and down in the commit list. I
> would like to make that more consistent with vi's j/k.
I kind of second this. Any program that implements keyboard
navigation and binds directions differently from vi greatly
irritates me.
But it may be just me, who never used wordstar.
> If this is not acceptable, I will investigate a git-config option for vi
> compatibility mode.
I think a sensible way to go would be to allow gitk to read a
custom tcl script from $HOME/.gitk, and make sure when the file
is written back, the custom bindings are stored there as well.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-04-29 18:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-28 3:02 [PATCH] make j/k move down/up in gitk (like vi) Bart Trojanowski
2007-04-28 9:26 ` Martin Waitz
2007-04-29 18:13 ` Junio C Hamano
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 NNTP newsgroup(s).