Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REQ: gitk: tag right-click should provide commands "Rename ..", "Remove ..", "Copy tag name" #855

Open
kxrob opened this issue Jan 30, 2021 · 4 comments

Comments

@kxrob
Copy link

kxrob commented Jan 30, 2021

Feature Request for gitk: right-click on a tag should provide menu with commands:
"Copy tag name"
"Rename this tag"
"Remove this tag"

(Similar to what exists for branches)

@adlternative
Copy link

Hey, maybe I don't know much about gitk, what technology stack does it need? I see the 10,000 lines of shell script code under gitk-git, and I don't know where to start.
Can you give me some guide?

@kxrob
Copy link
Author

kxrob commented Feb 1, 2021

Hello, this gitk GUI obviously is one big Tcl/Tk language script. The shell feeds it to the wish (GUI targeted as compared to tclsh) interpreter. I used TCL many many years back in a lab a little. not really into that anymore, but its rather simple and centered around string handling.

As this REQ is about sth similar to what already exists for branches, you may start from here and see how it works:

https://github.com/gitgitgadget/git/blob/master/gitk-git/gitk#L2679

    makemenu $headctxmenu {
        {mc "Check out this branch" command cobranch}
        {mc "Rename this branch" command mvbranch}
        {mc "Remove this branch" command rmbranch}
        {mc "Copy branch name" command {clipboard clear; clipboard append $headmenuhead}}
    }

@adlternative
Copy link

Thanks for your pointing,I have notice them,I will go to learn tcl first :)

@adlternative
Copy link

@kxrob,I may have solved part of this problem,May need a little help at the end.
THANKS!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants