gitk: Map / to focus the search box
The / key is often used to initiate searches (less, vim, some web browsers). This changes the binding for the / (slash) key from 'find next' to 'focus the search box' to follow this convention. Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Giuseppe Bilotta committed
Dec 2, 2008 at 02:19 UTC
97bed03448d864f38fac34eacf2fa124df526788
1 file changed
+2
-2
gitk
+2
-2
@@ -2279,7 +2279,7 @@ proc makewindow {} {
2279
bindkey b prevfile
2280
bindkey d "$ctext yview scroll 18 units"
2281
bindkey u "$ctext yview scroll -18 units"
2282
- bindkey / {dofind 1 1}
2282
+ bindkey / {focus $fstring}
2283
bindkey <Key-Return> {dofind 1 1}
2284
bindkey ? {dofind -1 1}
2285
bindkey f nextfile
@@ -2660,7 +2660,7 @@ proc keys {} {
2660
[mc "<%s-F> Find" $M1T]
2661
[mc "<%s-G> Move to next find hit" $M1T]
2662
[mc "<Return> Move to next find hit"]
2663
-[mc "/ Move to next find hit, or redo find"]
2663
+[mc "/ Focus the search box"]
2664
[mc "? Move to previous find hit"]
2665
[mc "f Scroll diff view to next file"]
2666
[mc "<%s-S> Search for next hit in diff view" $M1T]