Page 2 of 2

Re: Compare by content: wrap long lines

Posted: 2019-08-20, 19:50 UTC
by marlar
I second this suggestion. Word wrapping doesn't mean that the comparison is not line based. It's just a matter of how the line is displayed.

Anyway, I strongly recommend Meld for this. It has a nice word wrapping feature as well as regex filters. For example, you can define filters that exclude certain numbers, white space, code comments etc.

It integrates well with TC.

I have setup so that Ctrl-S (for Sammenlign in Danish) invokes TC built-in differ whereas Shift-Ctrl-S invokes Meld on the two files.

Using Linux via Wine BTW and it works great :)

Re: Compare by content: wrap long lines

Posted: 2019-12-14, 23:25 UTC
by Slavic
I wholly support this. It would be very useful, especially for comparing the HTML files where paragraphs are long and don't have new lines inside. Currently we can see only the begin of each line, and the difference may be far beyond the window.

Re: Compare by content: wrap long lines

Posted: 2024-03-07, 02:01 UTC
by target_locked
Hi there,
After may be 10 years, has this feature been implemented?
Is that too difficult to do?

Re: Compare by content: wrap long lines

Posted: 2024-03-07, 17:33 UTC
by JOUBE
target_locked wrote: 2024-03-07, 02:01 UTC Is that too difficult to do?
There are many new elements to handle long lines, e.g.:

Code: Select all

04.03.22 Added: Compare by content: Button "Sync" to choose re-synchronize method within a line (32/64)
10.03.22 Added: Compare by content: New hotkeys F2 and Shift+F2 to jump to the next/previous difference within the current line in edit mode (32/64)
11.03.22 Added: Compare by content: Shift+F2 now jumps to the last difference on the previous line with differences when no more differences are found on the current line (32/64)
11.03.22 Added: Compare by content: F2 now jumps to the first difference on the next line with differences when no more differences are found on the current line (32/64)
23.05.22 Fixed: Compare by content, right to left language: The new "Sync" button was overlapping text (32/64)
03.06.22 Fixed: Compare by content, "Sync" button: When the user changes the user-defined separators, switch to mode 3 which uses them and re-display the lines (32/64)
03.06.22 Fixed: Compare by content, "Sync" option 3: Handle special case where the two matching separators (left and right file) are the same -> they need to be drawn as part of the identical text (32/64)
05.06.22 Added: wincmd.ini [Configuration] CompareF2Mode=1 controls how F2 finds new strings in Compare by content: 0: just within the current line, 1: go to next line after last match, 2: restart in the current line (wrap around) after last match (32/64)
05.06.22 Fixed: Compare by content: Increased maximum line length for character by character comparison from 4096 to 32768 characters, edit mode from 16350 to 32768 characters (32/64)
17.06.22 Fixed: Compare by content, edit file, F2 jump to next match within a line: Blinking cursor may not be shown when F2 continues in the next line (32/64)
26.06.22 Fixed: Compare by content: Very long lines over 10000 characters could result in overlapping text (32/64)
03.07.22 Fixed: Compare by content: F2 didn't jump to zero length differences: positions where text was added to the other file (32/64)
04.07.22 Fixed: F2 in compare by content (edit mode): When using CompareF2Mode=2, don't jump to different line if current line doesn't contain any differences (32/64)
05.07.22 Fixed: F2 in compare by content (edit mode): When using CompareF2Mode=1, searching for the next difference could get stuck at empty lines (32/64)
It is not too difficult to use them and handle differences within long lines with them.