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

[PATCH] gitk: add some key-bind

From
OHOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Date
Sep 26, 2006, 15:27 UTC
Message-ID
<87y7s61wdx.fsf_-_@duaron.myhome.or.jp>
In-Reply-To
<873bae3b5x.fsf_-_@duaron.myhome.or.jp>

This add initial user of prevfile(), and additional some key-binds for emacs users.

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
---
 gitk |    6 ++++++
 1 file changed, 6 insertions(+)

diff -puN gitk~gitk-key-emacs gitk --- git/gitk~gitk-key-emacs 2006-09-27 00:17:31.000000000 +0900 +++ git-hirofumi/gitk 2006-09-27 00:17:31.000000000 +0900

@@ -672,6 +672,10 @@ proc makewindow {} {
     bind . <Control-Key-Down> "allcanvs yview scroll 1 units"
     bind . <Control-Key-Prior> "allcanvs yview scroll -1 pages"
     bind . <Control-Key-Next> "allcanvs yview scroll 1 pages"
+    bind . <Control-p> "$ctext yview scroll -1 units"
+    bind . <Control-n> "$ctext yview scroll 1 units"
+    bind . <Alt-v> "$ctext yview scroll -1 pages"
+    bind . <Control-v> "$ctext yview scroll 1 pages"
     bindkey <Key-Delete> "$ctext yview scroll -1 pages"
     bindkey <Key-BackSpace> "$ctext yview scroll -1 pages"
     bindkey <Key-space> "$ctext yview scroll 1 pages"
@@ -690,6 +694,8 @@ proc makewindow {} {
     bindkey <Key-Return> {findnext 0}
     bindkey ? findprev
     bindkey f nextfile
+    bindkey P prevfile
+    bindkey N nextfile
     bind . <Control-q> doquit
     bind . <Control-f> dofind
     bind . <Control-g> {findnext 0}
_
Previous: OGAWA HirofumiNext: Paul Mackerras
Message 5 of 7 in “gitk: Fix nextfile() and more”
  1. gitk: Fix nextfile() and moreOGAWA Hirofumi, Sep 25, 2006
  2. Junio C HamanoSep 26, 2006
  3. OGAWA HirofumiSep 26, 2006
  4. gitk: Fix nextfile() and add prevfile()OGAWA Hirofumi, Sep 26, 2006
  5. gitk: add some key-bindOGAWA Hirofumi, Sep 26, 2006
  6. Paul MackerrasSep 27, 2006
  7. OGAWA HirofumiSep 27, 2006

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.