Could you add a toggle to make the 'Compare contents' and 'Synchronize directories' function ignore line endings of text files to detect duplicates, please?
Windows vs. Unix (CR/LF vs. LF) with the same line content should be ignored.
Make Compare tools ignore line endings
Moderators: Hacker, petermad, Stefan2, white
Re: Make Compare tools ignore line endings
I think the topic is wrong, or I missunderstand you.
How should TC know where a line ends if you want to ignore any line end.
I guess you mean different line endings should be ignored.
How should TC know where a line ends if you want to ignore any line end.
I guess you mean different line endings should be ignored.
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC6 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.3 x64
TC 11.55 RC6 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.3 x64
Re: Make Compare tools ignore line endings
Well, "Compare contents" in a way does ignore different line breaks, but it opens the "Compare contents" dialog and show 0 differencies, just as when comparing and ANSI and a Unicode file, with otherwis identical content. I can live with that.
In "Synchronize directories" you can enable the plugin compare functions (the little button to the right of "by content") and then use [=tc.Compare as text] - then ANSI files with different line breaks compare equal.
In "Synchronize directories" you can enable the plugin compare functions (the little button to the right of "by content") and then use [=tc.Compare as text] - then ANSI files with different line breaks compare equal.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Make Compare tools ignore line endings
Thanks for pointing this out.petermad wrote: 2022-12-04, 18:46 UTCIn "Synchronize directories" you can enable the plugin compare functions (the little button to the right of "by content") and then use [=tc.Compare as text] - then ANSI files with different line breaks compare equal.