Why doesn't gitk have a copy / paste item in the edit section?

This forum shows that gitk works with native OS keys for copying / pasting, for example, into the SHA1 ID line: see failed to copy and paste gitk - macosx and How to copy text to gitk

My question is: why this function is not displayed in the menu item in the "Edit?"

Is there any kind of lock to allow this?

See also this link for a good gitk review in the answers:
Gitk understanding guide?

+4
source share
1 answer

As for copy / paste support between Tk and other applications, this wiki page page sums it up:

Q9. When I copy from a Tcl / Tk application to OS X, close this application, the text that I copied does not appear in the system paste buffer.
I need to switch focus to something else, while the Tk application is still working to copy / paste the cross-application to work as expected. I am using Tcl / Tk 8.10 on Leopard, although I had the same problem with 8.7 on Tiger. How to get around this?

A9. SLB: I can’t answer specifically for OS X, but a similar problem occurs on Windows.
I examined this and found that Windows provides two methods for storing information on the clipboard:

  • you can copy the text to the clipboard or
  • You can save the link to the application containing the text on the clipboard.

The latter is more effective when the amount of text is very large, but means that information is lost when the application terminates.
This is the only form of copying offered by Tk .
To solve this problem, TIP is required to expand the clipboard support in Tk.

So copying / pasting between application and Tk application may not be easy now ...


Original answer:

Today we are working with gitk all day, I see that there is no focus even on the bottom left gitk panel, where the content difference is displayed.

those. clicking on this panel does not launch anything for other panels.

In other words, the gitk GUI does not control mouse click / select events on this panel, and only its own clipboard capabilities apply.

It seems logical that the Edit menu does not reflect any copy / paste record since gitk does not control these selection events.
Be that as it may, ' Edit ' is only for editing settings.

+2
source

Source: https://habr.com/ru/post/1345440/


All Articles