{"thread":{"id":"38303","subject":"[PATCH] gitk: Bind g to focus the sha1 entry box","startedAt":"2015-01-07T18:21:37Z","lastAt":"2015-01-07T18:21:37Z","messageCount":1,"participants":["Ismael Luceno"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"254410","messageId":"1420654897-12592-1-git-send-email-ismael@iodev.co.uk","threadId":"38303","inReplyTo":null,"subject":"[PATCH] gitk: Bind g to focus the sha1 entry box","fromName":"Ismael Luceno","fromEmail":"ismael@iodev.co.uk","sentAt":"2015-01-07T18:21:37Z","receivedAt":"2015-01-07T18:21:37Z","isPatch":true,"sender":{"key":"ismael@iodev.co.uk","avatar":"https://avatars.githubusercontent.com/u/426980?v=4"},"body":"This allows switching to some commit quickly.\n\nSigned-off-by: Ismael Luceno <ismael@iodev.co.uk>\n---\n gitk | 2 ++\n 1 file changed, 2 insertions(+)\n\ndiff --git a/gitk b/gitk\nindex 78358a7..9552fd4 100755\n--- a/gitk\n+++ b/gitk\n@@ -2561,6 +2561,7 @@ proc makewindow {} {\n     bindkey b prevfile\n     bindkey d \"$ctext yview scroll 18 units\"\n     bindkey u \"$ctext yview scroll -18 units\"\n+    bindkey g {$sha1entry delete 0 end; focus $sha1entry}\n     bindkey / {focus $fstring}\n     bindkey <Key-KP_Divide> {focus $fstring}\n     bindkey <Key-Return> {dofind 1 1}\n@@ -2980,6 +2981,7 @@ proc keys {} {\n [mc \"<%s-F>\t\tFind\" $M1T]\n [mc \"<%s-G>\t\tMove to next find hit\" $M1T]\n [mc \"<Return>\tMove to next find hit\"]\n+[mc \"g\t\tGo to commit\"]\n [mc \"/\t\tFocus the search box\"]\n [mc \"?\t\tMove to previous find hit\"]\n [mc \"f\t\tScroll diff view to next file\"]\n-- \n2.2.1\n"}]}