git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gitk: Add mouse right-click options
@ 2015-05-08  2:29 Michael Rappazzo
  2015-05-08  2:29 ` Michael Rappazzo
  2015-05-17  0:56 ` Paul Mackerras
  0 siblings, 2 replies; 3+ messages in thread
From: Michael Rappazzo @ 2015-05-08  2:29 UTC (permalink / raw)
  To: git
  Cc: Michael Rappazzo, Jens.Lehmann, Johannes.Schindelin,
	Josef.Weidendorfer, Knut.Franke, alexhenrie24, andersk,
	andrew.kw.w, angavrilov, arjen, askeolsson, astrilhayato,
	barra_cuda, bdowning, bebarino, bernt, chriscool, das, dave,
	davvid, drafnel, fbriere, felipe.contreras, gabriele.mzt,
	gauthier, gitster, giuseppe.bilotta, gsromero, hirofumi,
	ilya.bobyr, j6t, jeffh, jim, jon.delStrother, jrnieder,
	judge.packham, kaitanie, kevin, killekulla

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(+)

-- 
2.4.0

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

* [PATCH] gitk: Add mouse right-click options
  2015-05-08  2:29 [PATCH] gitk: Add mouse right-click options Michael Rappazzo
@ 2015-05-08  2:29 ` Michael Rappazzo
  2015-05-17  0:56 ` Paul Mackerras
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Rappazzo @ 2015-05-08  2:29 UTC (permalink / raw)
  To: git
  Cc: Michael Rappazzo, Jens.Lehmann, Johannes.Schindelin,
	Josef.Weidendorfer, Knut.Franke, alexhenrie24, andersk,
	andrew.kw.w, angavrilov, arjen, askeolsson, astrilhayato,
	barra_cuda, bdowning, bebarino, bernt, chriscool, das, dave,
	davvid, drafnel, fbriere, felipe.contreras, gabriele.mzt,
	gauthier, gitster, giuseppe.bilotta, gsromero, hirofumi,
	ilya.bobyr, j6t, jeffh, jim, jon.delStrother, jrnieder,
	judge.packham, kaitanie, kevin, killekulla

 - 'Copy path' in the file list
 - 'Copy branch name' on a branch in the commit list

Signed-off-by: Michael Rappazzo <rappazzo@gmail.com>
---
 gitk-git/gitk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gitk-git/gitk b/gitk-git/gitk
index 9a2daf3..6d86820 100755
--- a/gitk-git/gitk
+++ b/gitk-git/gitk
@@ -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
 
-- 
2.4.0

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

* Re: [PATCH] gitk: Add mouse right-click options
  2015-05-08  2:29 [PATCH] gitk: Add mouse right-click options Michael Rappazzo
  2015-05-08  2:29 ` Michael Rappazzo
@ 2015-05-17  0:56 ` Paul Mackerras
  1 sibling, 0 replies; 3+ messages in thread
From: Paul Mackerras @ 2015-05-17  0:56 UTC (permalink / raw)
  To: Michael Rappazzo; +Cc: git

On Thu, May 07, 2015 at 10:29:19PM -0400, Michael Rappazzo wrote:
> 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.

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

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

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-08  2:29 [PATCH] gitk: Add mouse right-click options Michael Rappazzo
2015-05-08  2:29 ` Michael Rappazzo
2015-05-17  0:56 ` Paul Mackerras

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).