conf option: ignore linebreaks when synch'ing dir with text
Moderators: Hacker, petermad, Stefan2, white
-
- Junior Member
- Posts: 11
- Joined: 2011-11-10, 02:34 UTC
conf option: ignore linebreaks when synch'ing dir with text
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.
-
- Junior Member
- Posts: 11
- Joined: 2011-11-10, 02:34 UTC
- ghisler(Author)
- Site Admin
- Posts: 50824
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- Balderstrom
- Power Member
- Posts: 2148
- Joined: 2005-10-11, 10:10 UTC
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.
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.
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.
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.
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
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
Code: Select all
Admittedly a huge increase in relative size
