Version: (using Devel) OS: Linux Installed from: Compiled sources Could you please make the text selectable within Kompare? There are many times where I think "oops, the original code was better", but try to copy it, and can't.... I would just like to be able to drag the mouse to select those lines and bam, be able to fix my mistake, or only take bits and piece of the original code. I hope you know what I mean. Yes, there is the "text view", but this is not the same... It contains pluses and excess junk that I don't want to paste, and I would just rather, naturally, select the text within the view. Hopefully this is possible...
I strongly second that. My use case is when documenting or reporting a change that I made in the code. I need to paste sections of code in the document. It'd be great if I could select and copy text from Kompare itself. It's been 6 months since this wish was originally posted, and no response yet. I hope this isn't too difficult to implement (without changing a lot of code). The user can click on a 'block' of changed text. So, at least a 'copy text block' shouldn't be too difficult to implement.
It's quite hard to implement. The Kompare text view is derived from a list widget (K3ListView to be precise). Allowing you to select and even edit (though that part also requires handling the changes, selecting is easier) line by line would be possible using the list widget's item renaming facilities (but might also be nontrivial due to the custom drawing code), but selecting across lines is not supported by the list widget and would have to somehow be coded on top of it.
(In reply to comment #2) > It's quite hard to implement. The Kompare text view is derived from a list > widget (K3ListView to be precise). I guessed that much. I guess it would be easy to provide a 'copy' function to copy all text in one diff block (that'd be a few adjacent lines/items of the list widget). As of now, we are able to click on a diff block so that that particular change is highlighted. It'd be nice if we had right-click > 'copy text' option for such a diff block.
PS: My idea of a perfect diff tool is WinMerge. Too bad it's not available on Linux.
*** Bug 209216 has been marked as a duplicate of this bug. ***
If this is a duplicate of bug 102142, one of them could be resolved.
*** This bug has been marked as a duplicate of bug 102142 ***