git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Rappazzo <rappazzo@gmail.com>
To: git@vger.kernel.org
Cc: Michael Rappazzo <rappazzo@gmail.com>,
	Jens.Lehmann@web.de, Johannes.Schindelin@gmx.de,
	Josef.Weidendorfer@gmx.de, Knut.Franke@gmx.de,
	alexhenrie24@gmail.com, andersk@MIT.EDU, andrew.kw.w@gmail.com,
	angavrilov@gmail.com, arjen@yaph.org, askeolsson@gmail.com,
	astrilhayato@gmail.com, barra_cuda@katamail.com,
	bdowning@lavos.net, bebarino@gmail.com, bernt@norang.ca,
	chriscool@tuxfamily.org, das@users.sourceforge.net,
	dave@dulson.com, davvid@gmail.com, drafnel@gmail.com,
	fbriere@fbriere.net, felipe.contreras@gmail.com,
	gabriele.mzt@gmail.com, gauthier@ostervall.se, gitster@pobox.com,
	giuseppe.bilotta@gmail.com, gsromero@infernal-iceberg.com,
	hirofumi@mail.parknet.co.jp, ilya.bobyr@gmail.com, j6t@kdbg.org,
	jeffh@ActiveState.com, jim@meyering.net,
	jon.delStrother@bestbefore.tv, jrnieder@gmail.com,
	judge.packham@gmail.com, kaitanie@cc.helsinki.fi, kevin@sb.org,
	killekulla@rdrz
Subject: [PATCH] gitk: Add mouse right-click options
Date: Thu,  7 May 2015 22:29:20 -0400	[thread overview]
Message-ID: <1431052160-82758-2-git-send-email-rappazzo@gmail.com> (raw)
In-Reply-To: <1431052160-82758-1-git-send-email-rappazzo@gmail.com>

 - '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

  reply	other threads:[~2015-05-08  2:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-08  2:29 [PATCH] gitk: Add mouse right-click options Michael Rappazzo
2015-05-08  2:29 ` Michael Rappazzo [this message]
2015-05-17  0:56 ` Paul Mackerras

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1431052160-82758-2-git-send-email-rappazzo@gmail.com \
    --to=rappazzo@gmail.com \
    --cc=Jens.Lehmann@web.de \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=Josef.Weidendorfer@gmx.de \
    --cc=Knut.Franke@gmx.de \
    --cc=alexhenrie24@gmail.com \
    --cc=andersk@MIT.EDU \
    --cc=andrew.kw.w@gmail.com \
    --cc=angavrilov@gmail.com \
    --cc=arjen@yaph.org \
    --cc=askeolsson@gmail.com \
    --cc=astrilhayato@gmail.com \
    --cc=barra_cuda@katamail.com \
    --cc=bdowning@lavos.net \
    --cc=bebarino@gmail.com \
    --cc=bernt@norang.ca \
    --cc=chriscool@tuxfamily.org \
    --cc=das@users.sourceforge.net \
    --cc=dave@dulson.com \
    --cc=davvid@gmail.com \
    --cc=drafnel@gmail.com \
    --cc=fbriere@fbriere.net \
    --cc=felipe.contreras@gmail.com \
    --cc=gabriele.mzt@gmail.com \
    --cc=gauthier@ostervall.se \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=giuseppe.bilotta@gmail.com \
    --cc=gsromero@infernal-iceberg.com \
    --cc=hirofumi@mail.parknet.co.jp \
    --cc=ilya.bobyr@gmail.com \
    --cc=j6t@kdbg.org \
    --cc=jeffh@ActiveState.com \
    --cc=jim@meyering.net \
    --cc=jon.delStrother@bestbefore.tv \
    --cc=jrnieder@gmail.com \
    --cc=judge.packham@gmail.com \
    --cc=kaitanie@cc.helsinki.fi \
    --cc=kevin@sb.org \
    --cc=killekulla@rdrz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).