gitk: Add mouse right-click options
PATCH 1/1 gitk: Add mouse right-click options
I work in a large and deep codebase, and found it useful to have these additional features in gitk.
First, in the commit list, a right click on a branch name will add an option ('Copy branch name') to put that name on the system clipboard.
Second, in the file list of a commit, a right click on a file will add an option ('Copy path') to put the file path on the system clipboard.
Michael Rappazzo (1):
gitk: Add mouse right-click options
gitk-git/gitk | 2 ++ 1 file changed, 2 insertions(+)
Signature · 1 line
2.4.0
PATCH 1/1 gitk: Add mouse right-click options
- 'Copy path' in the file list
- 'Copy branch name' on a branch in the commit list
--- gitk-git/gitk | 2 ++ 1 file changed, 2 insertions(+)
gitk-git/gitk +2 -0
@@ -2645,6 +2645,7 @@ proc makewindow {} { makemenu $headctxmenu { {mc "Check out this branch" command cobranch} {mc "Remove this branch" command rmbranch} + {mc "Copy branch name" command {clipboard clear; clipboard append $headmenuhead}} } $headctxmenu configure -tearoff 0
@@ -2655,6 +2656,7 @@ proc makewindow {} { {mc "Highlight this only" command {flist_hl 1}} {mc "External diff" command {external_diff}} {mc "Blame parent commit" command {external_blame 1}} + {mc "Copy path" command {clipboard clear; clipboard append $flist_menu_file}} } $flist_menu configure -tearoff 0
Signature · 1 line
2.4.0
Paul Mackerras
AppliedQuoted 5 lines · Michael Rappazzo
I work in a large and deep codebase, and found it useful to have these additional features in gitk.
First, in the commit list, a right click on a branch name will add an option ('Copy branch name') to put that name on the system clipboard.
Second, in the file list of a commit, a right click on a file will add an option ('Copy path') to put the file path on the system clipboard.
Thanks, applied.
Paul.