Summary: | Make text selectable in diff view. | ||
---|---|---|---|
Product: | [Applications] kompare | Reporter: | Shaun Reich <sreich> |
Component: | general | Assignee: | Kompare developers <kompare-devel> |
Status: | RESOLVED DUPLICATE | ||
Severity: | wishlist | CC: | benderamp, denilsonsa, esigra, get.sonic |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Shaun Reich
2009-03-27 22:01:22 UTC
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 *** |