Bug 188287 - Make text selectable in diff view.
Summary: Make text selectable in diff view.
Status: RESOLVED DUPLICATE of bug 102142
Alias: None
Product: kompare
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Kompare developers
URL:
Keywords:
: 209216 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-27 22:01 UTC by Shaun Reich
Modified: 2013-07-11 19:05 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shaun Reich 2009-03-27 22:01:22 UTC
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...
Comment 1 Syam 2009-09-26 10:39:57 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.
Comment 2 Kevin Kofler 2009-09-26 13:56:04 UTC
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.
Comment 3 Syam 2009-09-26 14:04:35 UTC
(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.
Comment 4 Syam 2009-09-26 14:08:23 UTC
PS: My idea of a perfect diff tool is WinMerge. Too bad it's not available on Linux.
Comment 5 Kevin Kofler 2009-10-02 17:04:18 UTC
*** Bug 209216 has been marked as a duplicate of this bug. ***
Comment 6 Christoph Feck 2010-09-26 17:38:35 UTC
If this is a duplicate of bug 102142, one of them could be resolved.
Comment 7 Kevin Kofler 2013-07-11 19:05:34 UTC

*** This bug has been marked as a duplicate of bug 102142 ***