Compare by contents: Word wrap

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

oshizelly
Junior Member
Junior Member
Posts: 60
Joined: 2013-09-07, 13:51 UTC

Post by *oshizelly »

Wrapping lines as and option in Compare by content window may be simply useful for binary files. But this feature is absolutely necessary to compare text files. Have anybody any ideas, for what reason Christian does does not like the idea of adding this option to save those users, who needs it?
This argument ( http://www.ghisler.ch/board/viewtopic.php?p=237222#p237222 )does not seem to be very convenient for me, is there are any hidden considerations ;)
HBB
Senior Member
Senior Member
Posts: 295
Joined: 2008-05-05, 21:31 UTC

Post by *HBB »

I support this suggestion too.

Due to the reasons of Author, instead of expanding all lines, at least, a double-click action which expands/collapse the line under the cursor may help.
billiebub
Member
Member
Posts: 187
Joined: 2011-04-12, 19:49 UTC

Post by *billiebub »

definitely support this feature. It gets rather frustrating when having to scroll horizontally trying to find the changed characters. Even more frustrating when the lines are very very long
TW
Senior Member
Senior Member
Posts: 390
Joined: 2005-01-19, 13:35 UTC

Post by *TW »

support from me too.

just try to compare firefox' addons.js for example. it's all in one line... it's almost impossible to find the differences using cbc.
licenced and happy TC user since 1994 (#11xx)
Cars10
Junior Member
Junior Member
Posts: 6
Joined: 2014-05-14, 07:57 UTC
Location: Darmstadt, Germany

Post by *Cars10 »

Yes, I have this trouble many, many times as well. This would be a tremendous improvement.
Hammillian7
Member
Member
Posts: 107
Joined: 2003-07-16, 22:40 UTC
Location: Spain

Strong support by myself

Post by *Hammillian7 »

I also strongly vote for this option: showing long lines as wrapped would solve the problem that I suffer daily when comparing my C files.
Thanks,
Jose

Nubia Redmagic 7Pro with non-rooted Android 13
Surrendered to Win11
fgnievinski
Junior Member
Junior Member
Posts: 11
Joined: 2011-11-10, 02:34 UTC

Re: Compare by content: wrap long lines

Post by *fgnievinski »

the request is simply to make the horizontal scrollbar optional instead of being mandatory.
that way, the user can adjust the textbox width simply resizing the entire window.
marlar
Junior Member
Junior Member
Posts: 40
Joined: 2010-03-08, 11:18 UTC

Re: Compare by content: wrap long lines

Post 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 :)
Slavic
Senior Member
Senior Member
Posts: 295
Joined: 2006-02-26, 15:41 UTC
Location: Montenegro

Re: Compare by content: wrap long lines

Post 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.
Desktop: Windows 11 Pro 23H2, TC 11.50. Mobile: Pixel 5a, Android 14, TC 3.60b4
target_locked
Junior Member
Junior Member
Posts: 7
Joined: 2009-08-18, 01:46 UTC

Re: Compare by content: wrap long lines

Post by *target_locked »

Hi there,
After may be 10 years, has this feature been implemented?
Is that too difficult to do?
JOUBE
Power Member
Power Member
Posts: 1664
Joined: 2004-07-08, 08:58 UTC

Re: Compare by content: wrap long lines

Post 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.
target_locked
Junior Member
Junior Member
Posts: 7
Joined: 2009-08-18, 01:46 UTC

Re: Compare by content: wrap long lines

Post by *target_locked »

For your information.
While waiting for TotalCmd to develop "Text wrapping Compare".
I am using this site to compare 2 text files. And it works very well.
https://diffchecker.dev/
hi5
Power Member
Power Member
Posts: 637
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: Compare by content: wrap long lines

Post by *hi5 »

@target_locked WinMerge has a word wrap option, offline and portable - added bonus it can work with Excel,Word & PDF files too if you need it.
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6950
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Compare by content: wrap long lines

Post by *Horst.Epp »

@target_locked
As hi5 already said, WinMerge has the required option.
It can also be integrated in TC as Compare tool or used with a button with the parameters %C1 %C2
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
Hammillian7
Member
Member
Posts: 107
Joined: 2003-07-16, 22:40 UTC
Location: Spain

Re: Compare by content: wrap long lines

Post by *Hammillian7 »

2hi5 , 2Horst.Epp Very promising, thanks for suggesting !

It would be also very nice if anybody gave a quick recipe to integrate in TC, saving anyone else the effort to find out in the utility docum...
Thanks,
Jose

Nubia Redmagic 7Pro with non-rooted Android 13
Surrendered to Win11
Post Reply