summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-05-09 01:38:46 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2007-05-09 01:38:46 (GMT)
commitcc1f83fbdff1ae248c91ab231ab4100351e1ba0a (patch)
tree28c808d3882c762f6a7518853cb082971ab96180
parentf0bc498ec17eeb046c3494126e2ff12339abde77 (diff)
downloadgit-cc1f83fbdff1ae248c91ab231ab4100351e1ba0a.zip
git-cc1f83fbdff1ae248c91ab231ab4100351e1ba0a.tar.gz
git-cc1f83fbdff1ae248c91ab231ab4100351e1ba0a.tar.bz2
git-gui: Allow shift-{k,j} to select a range of branches to merge
I found it useful to be able to use j/k (vi-like keys) to move up and down the list of branches to merge and shift-j/k to do the selection, much as shift-up/down (arrow keys) would alter the selection. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
-rw-r--r--lib/merge.tcl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/merge.tcl b/lib/merge.tcl
index 3dce856..642d6ee 100644
--- a/lib/merge.tcl
+++ b/lib/merge.tcl
@@ -238,6 +238,8 @@ proc dialog {} {
$subj([lindex $ref 0])]
}
+ bind $w.source.l <Key-K> [list event generate %W <Shift-Key-Up>]
+ bind $w.source.l <Key-J> [list event generate %W <Shift-Key-Down>]
bind $w.source.l <Key-k> [list event generate %W <Key-Up>]
bind $w.source.l <Key-j> [list event generate %W <Key-Down>]
bind $w.source.l <Key-h> [list event generate %W <Key-Left>]