From e1d65ab098816914b24ac1ed954063c56e3fd08d Mon Sep 17 00:00:00 2001 From: Shulhan Date: Fri, 12 Nov 2021 19:43:17 +0700 Subject: gitk-git: add alternative shortcuts to update and reload commits Add CTRL+r to update commits and Shift+R to reload commits. --- gitk-git/gitk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gitk-git/gitk b/gitk-git/gitk index 2730274966..91b16a3bb0 100755 --- a/gitk-git/gitk +++ b/gitk-git/gitk @@ -2395,8 +2395,8 @@ proc makewindow {} { # sees the following string as needing to be translated set file { mc "&File" cascade { - {mc "&Update" command updatecommits -accelerator F5} - {mc "&Reload" command reloadcommits -accelerator Shift-F5} + {mc "&Update" command updatecommits -accelerator F5/r} + {mc "&Reload" command reloadcommits -accelerator Shift-F5/Shift-r} {mc "Reread re&ferences" command rereadrefs} {mc "&List references" command showrefs -accelerator F2} {xx "" separator} @@ -2809,7 +2809,9 @@ proc makewindow {} { bindkey ? {dofind -1 1} bindkey f nextfile bind . updatecommits + bindkey r updatecommits bindmodfunctionkey Shift 5 reloadcommits + bind . reloadcommits bind . showrefs bindmodfunctionkey Shift 4 {newview 0} bind . edit_or_newview -- cgit v1.3