Synchronize Directories: Ignore white space, empty line, EOL

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
tbeu
Power Member
Power Member
Posts: 1354
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Synchronize Directories: Ignore white space, empty line, EOL

Post by *tbeu »

Is there any chance to ignore white space, empty lines and line ending (EOL can be LF, CRLF or CR) of files to be compared in Sync Dirs? Otherwise it is difficult to compare source code projects from repositories with archives.

I know I could do a content plugin but wanted to ask here first if I miss something that is already out there. And please do not suggest any other tools (like KDiff) since I am only interested in a native TC way.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50923
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

You will need to create a plugin - I recommend that you modify my sample content plugin "filesys", which already contains a sample function where line breaks are ignored: Have a look at the function "ContentCompareFiles".

https://plugins.ghisler.com/content/wdx_filesys.zip
https://plugins.ghisler.com/content/wdx_filesys_src.zip
Author of Total Commander
https://www.ghisler.com
User avatar
tbeu
Power Member
Power Member
Posts: 1354
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Post by *tbeu »

OK, will do it. Thanks.

Thread can be moved to Plugins category.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
User avatar
tbeu
Power Member
Power Member
Posts: 1354
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Post by *tbeu »

It takes some time. Only counting the lines of text files is already implemented: teaser here
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
Post Reply