@matheusbsbs / matheus-bagliano / commits / cc1f83fbdf
Fork 0

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>

Shawn O. Pearce committed May 8, 2007 at 21:38 UTC cc1f83fbdff1ae248c91ab231ab4100351e1ba0a
1 file changed +2
lib/merge.tcl
+2
@@ -238,6 +238,8 @@ proc dialog {} {
238 $subj([lindex $ref 0])]
239 }
240
241 + bind $w.source.l <Key-K> [list event generate %W <Shift-Key-Up>]
242 + bind $w.source.l <Key-J> [list event generate %W <Shift-Key-Down>]
243 bind $w.source.l <Key-k> [list event generate %W <Key-Up>]
244 bind $w.source.l <Key-j> [list event generate %W <Key-Down>]
245 bind $w.source.l <Key-h> [list event generate %W <Key-Left>]