git/list[1] front-page[2] threads[3] people[4] search[5] about
 

gitk: More vi like cursor move

From
Yasushi SHOJI <yashi@atmark-techno.com>
Date
Sep 28, 2005, 03:32 UTC
Message-ID
<87d5mt989t.wl@mail2.atmark-techno.com>
Hello,

Just synced git and see that gitk now have vi like key binding. however, IMHO, cursor move doesn't feel like vi.

If the attached patch make sense to people on the list, I'd like to send formated email/patch to Paul.

regards,
--
          yashi
diff --git a/gitk b/gitk
--- a/gitk
+++ b/gitk
@@ -497,9 +497,10 @@ proc makewindow {} {
     bindkey n "selnextline 1"
     bindkey z "goback"
     bindkey x "goforw"
+    bindkey h "goback"
     bindkey i "selnextline -1"
-    bindkey k "selnextline 1"
-    bindkey j "goback"
+    bindkey k "selnextline -1"
+    bindkey j "selnextline 1"
     bindkey l "goforw"
     bindkey b "$ctext yview scroll -1 pages"
     bindkey d "$ctext yview scroll 18 units"
Message 1 of 1 in “gitk: More vi like cursor move”
  1. Yasushi SHOJISep 28, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.