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.
Synchronize Directories: Ignore white space, empty line, EOL
Moderators: Hacker, petermad, Stefan2, white
Synchronize Directories: Ignore white space, empty line, EOL
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
- ghisler(Author)
- Site Admin
- Posts: 50923
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
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
https://www.ghisler.com
OK, will do it. Thanks.
Thread can be moved to Plugins category.
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
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