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.
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.
Workaround:
This opens up a new gui blame editor with full copy/paste functionality.
It should support the (X clipboard style) copy, even though a bug has been reported for that feature on Ubuntu:
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:
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.
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