threads / patch / 39084

patchgitk: Allow to quickly go to a specific commit

Subject: [PATCH] gitk: Allow to quickly go to a specific commit

## tl;dr

2 messages between Apr 15, 2015 and May 17, 2015. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Ismael Luceno· Apr 15, 2015, 16:18 UTC · lore
Binds "g" to focus the sha1 entry box.
Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
---
 gitk | 2 ++
 1 file changed, 2 insertions(+)
Show changes to gitk +2 −0
diff --git a/gitk b/gitk
index 9a2daf3..0e9d884 100755
--- a/gitk
+++ b/gitk
@@ -2568,6 +2568,7 @@ proc makewindow {} {
     bindkey b prevfile
     bindkey d "$ctext yview scroll 18 units"
     bindkey u "$ctext yview scroll -18 units"
+    bindkey g {$sha1entry delete 0 end; focus $sha1entry}
     bindkey / {focus $fstring}
     bindkey <Key-KP_Divide> {focus $fstring}
     bindkey <Key-Return> {dofind 1 1}
@@ -3069,6 +3070,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 "g		Go to commit"]
 [mc "/		Focus the search box"]
 [mc "?		Move to previous find hit"]
 [mc "f		Scroll diff view to next file"]
-- 
2.3.4
Paul Mackerras· May 17, 2015, 04:24 UTC · re: Ismael Luceno · lore

Re: [PATCH] gitk: Allow to quickly go to a specific commit

On Wed, Apr 15, 2015 at 01:18:17PM -0300, Ismael Luceno wrote:
> Binds "g" to focus the sha1 entry box.
> 
> Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
Thanks, applied (with some tweaks to the commit title and message).
Paul.

← back to recent threads