'Graphical difftool for Linux that supports word wrap/line break
Using Ubuntu 20.04 (Focal Fossa) I would like to use a graphical diff tool (like Meld, KDiff3, Kompare, etc.) that supports automatic line breaks. What I mean by that is that I would like to see the entire text in the graphical window that's available to me, without the need of scrolling horizontally, as this is incredibly painful when using text (scientific papers) with very long lines (i.e., long paragraphs).
I've checked all "top X diff tools" webpages and tried more than 10 graphical diff tools. None of them supports automatic word wraps/line breaks (or however they are called). In all of them, long lines are just endlessly long lines.
Fun fact: I know that Meld did support this at some point, but apparently it does not any more. For some extremely weird reason, they've just removed this feature.
To be more precise, KDiff3 actually does support this, but it seems that it does not allow to edit the text being displayed, which is another extremely essential feature since diff tools get "confused" very easily, so one needs to constantly do some minor alterations to the text so that the differ keeps recognizing similarities.
So, what tool can be recommend? It's driving me crazy that I can't use a differ any more...
Solution 1:[1]
The Meld utility has the option.
In the menu bar, click on Meld ? Preferences ? Editor ? Enable text wrapping.
I can confirm it's available as of the 3.20.2 release.
Solution 2:[2]
One possible answer, though that is technically not what I'm looking for since it's not a GUI (though I only said "graphical", which it is, I did technically not restrict to GUI -- although I meant that) is icdiff
. It puts the two texts onto the terminal, but highlights differences in color (with the demanded line wrap).
It was recommended in another Stack Overflow post, which you should probably vote on (question + answer) if you find this helpful.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | |
Solution 2 | Peter Mortensen |