为什么 gitk 在编辑下没有复制/粘贴菜单项?
本论坛已表明,gitk 可与本机操作系统密钥配合使用,例如将其复制/粘贴到 SHA1 ID 行中:请参阅 无法在 gitk - macosx 中复制和粘贴 和 如何在 gitk 中复制文本
我的问题是为什么此功能没有出现在编辑下的菜单项?
能够做到这一点是否存在一些障碍?
另请参阅此参考资料,以获取答案中对 gitk 的良好概述:
了解 gitk 的指南?
It has been shown in this forum that gitk works with the native OS keys to copy/paste for example into the SHA1 ID line: see
unable to copy and paste in gitk - macosx and How to copy text in gitk
My question is why doesn't this functionality appear in a menu item under Edit?
Is there some blockage to being able to do that?
See also this reference for a good overview of gitk in the answers:
Guide to understanding gitk?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
关于 Tk 和其他应用程序之间的复制/粘贴支持,这个 wiki 页面 总结道:
因此,现在在应用程序和 Tk 应用程序之间复制/粘贴可能并不容易...
原始答案:
今天一整天都在使用 gitk,我可以看到甚至没有“焦点” gitk 的左下面板,显示内容的差异。
即单击该面板不会触发其他面板的任何内容。
换句话说,gitk GUI 不会监视该面板中的鼠标单击/选择事件,并且仅适用本机剪贴板功能。
“
Edit
”菜单不反映任何复制/粘贴条目似乎是一致的,因为gitk
不监视这些选择事件。事实上,“
编辑
”仅用于编辑首选项。Regarding copy/paste support between Tk and other Apps, this wiki page sums it up:
So copy/paste between an app and a Tk app might not be easy right now...
Original answer:
Having work with
gitk
all day long today, I can see there is no "focus" even on the left-bottom panel ofgitk
, where diff of content are displayed.I.e. clicking in that panel doesn't trigger anything for the other panels.
In other words, the
gitk
GUI doesn't monitor the mouse click/selection events in that panel, and only native clipboard capability applies in it.It seems coherent that the '
Edit
' menu don't reflect any copy/paste entry, sincegitk
don't monitor those selections events.As it is, '
Edit
' is only there to edit the preferences.