[PATCH] Add new keybindings
This adds several new keybindings to allow history and selectline navigation. I basically added Opera-like history traversal, as well as left-right-cursor history traversal and vi-like motion commands. Signed-off-by: Robert Suetterlin <robert@mpe.mpg.de> Signed-off-by: Paul Mackerras <paulus@samba.org>
Robert Suetterlin committed
Sep 22, 2005 at 10:07 UTC
6e2dda35c2f012298f4f4759db2d651ef18e39a0
1 file changed
+9
-1
gitk
+9
-1
@@ -1,6 +1,6 @@
1
#!/bin/sh
2
# Tcl ignores the next line -*- tcl -*- \
3
-exec wish "$0" -- "${1+$@}"
3
+exec wish8.4 "$0" -- "${1+$@}"
4
5
# Copyright (C) 2005 Paul Mackerras. All rights reserved.
6
# This program is free software; it may be used, copied, modified
@@ -486,6 +486,8 @@ proc makewindow {} {
486
bindall <B2-Motion> "allcanvs scan dragto 0 %y"
487
bind . <Key-Up> "selnextline -1"
488
bind . <Key-Down> "selnextline 1"
489
+ bind . <Key-Right> "goforw"
490
+ bind . <Key-Left> "goback"
491
bind . <Key-Prior> "allcanvs yview scroll -1 pages"
492
bind . <Key-Next> "allcanvs yview scroll 1 pages"
493
bindkey <Key-Delete> "$ctext yview scroll -1 pages"
@@ -493,6 +495,12 @@ proc makewindow {} {
495
bindkey <Key-space> "$ctext yview scroll 1 pages"
496
bindkey p "selnextline -1"
497
bindkey n "selnextline 1"
498
+ bindkey z "goback"
499
+ bindkey x "goforw"
500
+ bindkey i "selnextline -1"
501
+ bindkey k "selnextline 1"
502
+ bindkey j "goback"
503
+ bindkey l "goforw"
504
bindkey b "$ctext yview scroll -1 pages"
505
bindkey d "$ctext yview scroll 18 units"
506
bindkey u "$ctext yview scroll -18 units"