Hello,
I've been using Total Commander since the DOS ages (at that time Norton Commander) and for the first time I'm hitting something I cannot find in totalCmd.
I'd like to compare directories with text files by content, but ignore the fact that these file have CRLF one one side and only LF on the other side.
Is this possible?
Directory compare by content, CRLF vs LF
Moderators: white, Hacker, petermad, Stefan2
-
- Power Member
- Posts: 872
- Joined: 2013-09-04, 14:07 UTC
You should be able to do this by adding a custom compare type using one of TC's built-in content plug-in functions:
- In the sync. dir window, click on the ">>" or "++" button (next to the "by content" checkbox.)
- Enable "Use plugin compare function" checkbox.
- Click "Add", and provide the required file type(s), for example *.txt.
- When asked for for the custom fields, click on the "+" button.
- Select the "tc" plugin and choose the "Compare as text" property.
- Go!
When comparing two files from the file system (not from FTP or archives) a button is shown which allows to choose content plugins for comparison: {...} The internal compare mode [=tc.compare as text] compares two files as plain text like in "Compare by content". Different types of line breaks (Windows, Unix, MacOS) will be ignored.