如何在gitk中复制文本
我可以在gitk的左下面板中复制源代码吗?有键盘快捷键或其他功能吗?
操作系统:Ubuntu 9.04 桌面/gitk:1:1.6.0.4-1ubuntu2
谢谢。
Can I copy source code in the left-bottom panel in gitk? Any keyboard shortcut or other functions?
OS: Ubuntu 9.04 Desktop / gitk: 1:1.6.0.4-1ubuntu2
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
它应该支持(X剪贴板样式)副本,即使 一个错误据报道 Ubuntu 上有该功能:
It should support the (X clipboard style) copy, even though a bug has been reported for that feature on Ubuntu:
解决方法:
这将打开一个新的 GUI 责备编辑器,具有完整的复制/粘贴功能。
Workaround:
This opens up a new gui blame editor with full copy/paste functionality.
我在 Ubuntu(使用 Gnome)上也遇到了这个问题。但是我发现我可以选择文本,然后使用“xclip -o”将其打印到控制台(然后我可以正常使用/复制)。我猜 X 剪贴板与普通的 Gnome 剪贴板是分开的。
I had trouble with this on Ubuntu (with Gnome) as well. However I found I could select text and then use 'xclip -o' to print it to the console (which I could then use/copy as normal). I guess the X clipboard is separate from the normal Gnome clipboard.
在 backgroup 模式下运行 Gitk,粘贴时不要关闭它。当 gitk 仍在运行时,剪贴板会更好地工作。
$ gitk &
您还可以将其作为 ~/.bashrc 或 ~/.bash_aliases 中的函数
Run Gitk in backgroup mode and don't close it while you paste. The clipboard will work better while gitk is still running.
$ gitk &
You can also make it as function in ~/.bashrc or ~/.bash_aliases
我在带有 gnome 桌面的 Ubuntu 16.04 上也遇到了完全相同的问题。看来旧版本有bug,最新版本已修复。通过以下步骤升级 gitk:
I also have exactly the same problem on my Ubuntu 16.04 with gnome desktop. It seems a bug in old version and fixed in latest version. Upgrade gitk with these steps:
问:如何在gitk中复制?
答:选择文本,然后从
"*
粘贴。注意:
"*
与"+
不同,后者不是为我工作。Q: How copy in gitk?
A: Select the text, then paste from
"*
.NOTE:
"*
is not the same as"+
which is not working for me.