Page 1 of 2
conf option: ignore linebreaks when synch'ing dir with text
Posted: 2011-11-10, 23:27 UTC
by fgnievinski
A configuration option to ignore linebreaks when synchronizing directories having text files; the option is disabled by default, so that it's backwards compatible. For background, see topics ID # 234340 and 28753.
Posted: 2011-11-15, 00:14 UTC
by fgnievinski
Would you see any hurdles in implementing this?
thx
Posted: 2011-11-17, 15:06 UTC
by ghisler(Author)
This should actually work when using the "compare as text" plugin: Forst check the "by content" option, then click on >>, and then choose the file types (e.g. *.txt *.htm *.html). Then choose the only available compare plugin, tc -> compare as text.
Posted: 2011-11-17, 17:46 UTC
by Balderstrom
That's cool, but it doesn't work when the only difference between the files are tabs/spaces, or trailing whitespace on a line.
Perhaps this should be it's own suggestion? But it would be very useful when comparing source trees if the "≠" not-equals symbol could distinguish that somehow --- Especially since when you open the file with the Compare Tool, it indicates 0 differences when "ignore repeated spaces" is checked.
A different Icon & Icon box/filter would be most helpful, e.g.
≃ OR ≅
Example, the box filters might be layed out:
≃ (with this as a tiny 1/2 size box above the not equals)
→ = ≠ ←
The icon could also only be used in the display file list below, and it could be a checkbox modifier, [x] Ignore difference in tab/spaces.
Or adjust the TC "compare as text" plugin to also ignore space/tabs.
I would still recommend adding the new almost-equal icon in the file-list though for both mismatching line-breaks and tab/spaces --- so we can tell that there is a difference - just not a very relevant one.
Posted: 2011-11-18, 05:33 UTC
by MVV
Balderstrom, compare plugin may easilly return custom icon to TC together with compare result, so it is not a problem - it is possible to write compare plugin that will work like you wish.
E.g. my little plugin from
this post (it allows to skip e.g. compare for large files) allows to mark some files as equal and to show custom icon.
Posted: 2011-11-18, 09:24 UTC
by EricB
MVV,
Highly useful this one. One can skip e.g. ISO files while comparing dirs with Compare Contents checked (which is my default mode).
Would be even more useful if one could define a size limit for behaviour. Like if filesize > 1Gb then Skip else do regular compare. I don't even know if this is possible at all?
Regards, EricB
Posted: 2011-11-18, 10:11 UTC
by MVV
EricB, just define search template with rule (Advanced tab, File size > e.g. 100 MB) and choose plugin for this template.

Posted: 2011-11-18, 10:23 UTC
by EricB
MVV, You're the man! Works like a charm. Silly me, that I've never thought of doing it with a defined type before.
This will probably also solve my request in the Suggestions thread
Thx, EricB
Posted: 2013-02-20, 14:38 UTC
by EricB
MVV,
Just to fire up this old thread: could you publish SkipCompare also on totalcmd.net? And maybe add version information in the wdx, so it can be used by TotalUpdater?
TIA, EricB
Posted: 2013-02-20, 15:53 UTC
by MVV
Version info will increase file size from 2.5K to 3.5K.

I don't think there will be any updates but maybe I'll put it on totalcmd.net.
Posted: 2013-02-20, 15:56 UTC
by EricB
Fair enough. I think the wdx is very useful, others might think alike. Publication on totalcmd .net might get you more fans
Regards, EricB
Posted: 2013-02-22, 13:24 UTC
by MVV
I've put plugin on totalcmd.net with 64-bit version and small Readme.
Posted: 2013-02-22, 13:53 UTC
by EricB
Thx, MVV.
And I see you added version info too. Admittedly a huge increase in relative size, but useful.
Regards, EricB
Posted: 2013-02-22, 14:10 UTC
by MVV
Code: Select all
Admittedly a huge increase in relative size
That was a joke BTW, notice the smile.

Posted: 2013-02-22, 14:13 UTC
by EricB
Same for me, I tried to put in some irony, but that's sometimes hard for a non-native speaker...