gitk: Make it easier to go quickly to a specific commit
Binds "g" to focus and clear the sha1 entry box. Signed-off-by: Ismael Luceno <ismael@iodev.co.uk> Signed-off-by: Paul Mackerras <paulus@samba.org>
Ismael Luceno committed
Apr 15, 2015 at 13:18 UTC
0deb5c97217b9d4695f3d09c081e39fee58ed60f
1 file changed
+2
gitk
+2
@@ -2568,6 +2568,7 @@ proc makewindow {} {
2568
bindkey b prevfile
2569
bindkey d "$ctext yview scroll 18 units"
2570
bindkey u "$ctext yview scroll -18 units"
2571
+ bindkey g {$sha1entry delete 0 end; focus $sha1entry}
2572
bindkey / {focus $fstring}
2573
bindkey <Key-KP_Divide> {focus $fstring}
2574
bindkey <Key-Return> {dofind 1 1}
@@ -3071,6 +3072,7 @@ proc keys {} {
3072
[mc "<%s-F> Find" $M1T]
3073
[mc "<%s-G> Move to next find hit" $M1T]
3074
[mc "<Return> Move to next find hit"]
3075
+[mc "g Go to commit"]
3076
[mc "/ Focus the search box"]
3077
[mc "? Move to previous find hit"]
3078
[mc "f Scroll diff view to next file"]