Compare by content warning message

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Galizza
Member
Member
Posts: 167
Joined: 2018-09-07, 05:21 UTC

Compare by content warning message

Post by *Galizza »

 
I'm sorry if this function was already suggested before, i've been searching but haven't found any topic about it.

I'd like to suggest that Tc displays a warning message if cm_IntCompareFilesByContent is used when more than 2 files are selected on the same panel (Normal or Branch view modes).

If this command only serves to compare 2 files in my opinion it is a mistake that it works the same way if more than 2 files are selected.

This becomes more important if by mistake more than 2 files are selected in directories in which there are multiple versions of the same file, and therefore it is more difficult to realize that the files you really want to compare are not being compared.

Thanks :!:
 
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3299
Joined: 2003-05-06, 11:46 UTC

Re: Compare by content warning message

Post by *Sir_SiLvA »

No RC shouldnt especially as Tools like WinMerge can compare 3 at the same time.
Hoecker sie sind raus!
Galizza
Member
Member
Posts: 167
Joined: 2018-09-07, 05:21 UTC

Re: Compare by content warning message

Post by *Galizza »

Sir_SiLvA wrote: 2023-12-14, 10:50 UTC No RC shouldnt especially as Tools like WinMerge can compare 3 at the same time.
 
I was talking about cm_IntCompareFilesByContent not about cm_CompareFilesByContent, so AFAIK WinMerge will not be affected at all.

I hope Christian will consider it, and meantime i have added a warning message using Ahk.
 
 
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Compare by content warning message

Post by *petermad »

2Galizza

As a workaround you can use this button:

Code: Select all

TOTALCMD#BAR#DATA
%COMSPEC% /C
%Qif not exist "%P" ((echo Drive not supported) & pause) else if exist "%P%S1\*" ((echo Do not select folders!) & pause) else if not "*%C3"=="*" ((echo More than two files are selected!) & pause) else if "*%S1"=="*%S2" ((echo Only on file is selcted!) & pause) else start %%COMMANDER_EXE%% /i="%%COMMANDER_INI%%" /O /S=C "%C1" "%C2"
wcmicons.dll,49
Compare Contents - only if two files are selected


-1
To make the button:
1. Mark the text in the box here above (click SELECT ALL).
2. Copy it to the ClipBoard (press Ctrl+C).
3. Right click on TC's buttonbar and choose "Paste".
It will only open the Compare by Contens dialog if excactly two files are marked in the same panel - otherwise you will get an error shown in a DOS consiole. It will not work inside archives or on FTP sites and File system plugins.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Galizza
Member
Member
Posts: 167
Joined: 2018-09-07, 05:21 UTC

Re: Compare by content warning message

Post by *Galizza »

petermad wrote: As a workaround you can use this button
Thanks :!:
Post Reply