All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gitk: Allow to quickly go to a specific commit
@ 2015-04-15 16:18 Ismael Luceno
  2015-05-17  4:24 ` Paul Mackerras
  0 siblings, 1 reply; 2+ messages in thread
From: Ismael Luceno @ 2015-04-15 16:18 UTC (permalink / raw)
  To: git; +Cc: Paul Mackerras, Ismael Luceno

Binds "g" to focus the sha1 entry box.

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

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] gitk: Allow to quickly go to a specific commit
  2015-04-15 16:18 [PATCH] gitk: Allow to quickly go to a specific commit Ismael Luceno
@ 2015-05-17  4:24 ` Paul Mackerras
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Mackerras @ 2015-05-17  4:24 UTC (permalink / raw)
  To: Ismael Luceno; +Cc: git

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-17  6:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-15 16:18 [PATCH] gitk: Allow to quickly go to a specific commit Ismael Luceno
2015-05-17  4:24 ` Paul Mackerras

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.