git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gitk: Bind g to focus the sha1 entry box
@ 2015-01-07 18:21 Ismael Luceno
  0 siblings, 0 replies; only message in thread
From: Ismael Luceno @ 2015-01-07 18:21 UTC (permalink / raw)
  To: git; +Cc: Paul Mackerras, Ismael Luceno

This allows switching to some commit quickly.

Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
---
 gitk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gitk b/gitk
index 78358a7..9552fd4 100755
--- a/gitk
+++ b/gitk
@@ -2561,6 +2561,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}
@@ -2980,6 +2981,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.2.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-01-07 18:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-07 18:21 [PATCH] gitk: Bind g to focus the sha1 entry box Ismael Luceno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).