diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-12-02 02:19:22 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-12-22 10:16:17 +1100 |
commit | 97bed03448d864f38fac34eacf2fa124df526788 (patch) | |
tree | 3800a38fbe37a14877dc8e5686064640c1a4cbcc /gitk | |
parent | 9712b81a765978d2770b32bb77d25bfbf05d5eb5 (diff) | |
download | git-97bed03448d864f38fac34eacf2fa124df526788.tar.gz git-97bed03448d864f38fac34eacf2fa124df526788.tar.xz |
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>
Diffstat (limited to 'gitk')
-rwxr-xr-x | gitk | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2279,7 +2279,7 @@ proc makewindow {} { bindkey b prevfile bindkey d "$ctext yview scroll 18 units" bindkey u "$ctext yview scroll -18 units" - bindkey / {dofind 1 1} + bindkey / {focus $fstring} bindkey <Key-Return> {dofind 1 1} bindkey ? {dofind -1 1} bindkey f nextfile @@ -2660,7 +2660,7 @@ proc keys {} { [mc "<%s-F> Find" $M1T] [mc "<%s-G> Move to next find hit" $M1T] [mc "<Return> Move to next find hit"] -[mc "/ Move to next find hit, or redo find"] +[mc "/ Focus the search box"] [mc "? Move to previous find hit"] [mc "f Scroll diff view to next file"] [mc "<%s-S> Search for next hit in diff view" $M1T] |