Skip to content

Commit 0deb5c9

Browse files
ismaellpaulusmack
authored andcommitted
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>
1 parent 9922c5a commit 0deb5c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gitk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2568,6 +2568,7 @@ proc makewindow {} {
25682568
bindkey b prevfile
25692569
bindkey d "$ctext yview scroll 18 units"
25702570
bindkey u "$ctext yview scroll -18 units"
2571+
bindkey g {$sha1entry delete 0 end; focus $sha1entry}
25712572
bindkey / {focus $fstring}
25722573
bindkey <Key-KP_Divide> {focus $fstring}
25732574
bindkey <Key-Return> {dofind 1 1}
@@ -3071,6 +3072,7 @@ proc keys {} {
30713072
[mc "<%s-F> Find" $M1T]
30723073
[mc "<%s-G> Move to next find hit" $M1T]
30733074
[mc "<Return> Move to next find hit"]
3075+
[mc "g Go to commit"]
30743076
[mc "/ Focus the search box"]
30753077
[mc "? Move to previous find hit"]
30763078
[mc "f Scroll diff view to next file"]

0 commit comments

Comments
 (0)