Page 1 of 1

New sub-menu on command for Files ext. comparison

Posted: 2022-07-27, 17:28 UTC
by AntonyD
We have a command "cm_CompareFilesByContent" to call a third party file comparison tool instead of the built-in cmd (cm_IntCompareFilesByContent). And that's good - and it works.
BUT! files are different and the means of comparing them are also different often, and sometimes the tool that is well suited for files of type A is completely inconvenient for comparing files of type B. Therefore, it is proposed to enter in the GUI-settings! not in the mode of manual editing of the wincmd.INI file! LIST of external comparison tools and display a MENU with their names when calling an external comparison command. So that you always will have the opportunity to choose the ideal tool for the operation "Compare" on 2 files.

Re: New sub-menu on command for Files ext. comparison

Posted: 2022-07-27, 17:45 UTC
by Gral
How is TC supposed to know about any file diff tools? If you haven't downloaded and installed anything, TC is supposed to download and install some tools itself? Even if TC installs 10 different tools, you may still not have the one that is needed for specific files, and it exists somewhere on the net.

Re: New sub-menu on command for Files ext. comparison

Posted: 2022-07-27, 17:52 UTC
by Horst.Epp
I do that job with a button using the %c1 %c2 parameters.
This button as menu allows any number of comparision tools.
Most of the time Beyond Compare configured as comparison tool
is enough as its supports already many file types.

Re: New sub-menu on command for Files ext. comparison

Posted: 2022-07-27, 17:54 UTC
by AntonyD
How is TC supposed to know
I thought I written all perfectly:
" it is proposed to enter in the GUI-settings! not in the mode of manual editing of the wincmd.INI file! LIST of external comparison tools"
I will create a list of installed by me in my OS all comparison tools - a list INSIDE the GUI-settings of TC!
I will directly supply in this list full path to the tool itself and the name of this comparison tool.
The TC is only responsible for holding of this list and make from it the corresponding menu which should arise above the mouse cursor when I will call TC's command for external compare process starting.

Re: New sub-menu on command for Files ext. comparison

Posted: 2022-07-27, 17:58 UTC
by AntonyD
Horst.Epp wrote: 2022-07-27, 17:52 UTC I do that job with a button using the %c1 %c2 parameters.
Mostly the compare process is starting from inside the Synchronize Dir window. Which is not holding the ability to have some buttons on some toolbar ...

Re: New sub-menu on command for Files ext. comparison

Posted: 2022-07-27, 18:04 UTC
by Gral
So maybe a more universal solution request then - allow call user toolbar from Synchronize Directories window.

Re: New sub-menu on command for Files ext. comparison

Posted: 2022-07-27, 18:06 UTC
by Horst.Epp
AntonDudarenko wrote: 2022-07-27, 17:58 UTC
Horst.Epp wrote: 2022-07-27, 17:52 UTC I do that job with a button using the %c1 %c2 parameters.
Mostly the compare process is starting from inside the Synchronize Dir window. Which is not holding the ability to have some buttons on some toolbar ...
For me Ctrl-F3 in the synchronize window starts the configured CompareTool Beyond Compare.

Re: New sub-menu on command for Files ext. comparison

Posted: 2022-07-27, 20:24 UTC
by AntonyD
Gral wrote: 2022-07-27, 18:04 UTC So maybe a more universal solution request then - allow call user toolbar from Synchronize Directories window.
Probably most intuitive and pleasant))) option, but, IMHO - will require much more efforts in order for implement this in comparison))) with my idea - show only simple context menu.

Re: New sub-menu on command for Files ext. comparison

Posted: 2022-07-27, 20:27 UTC
by AntonyD
Horst.Epp wrote: 2022-07-27, 18:06 UTC For me Ctrl-F3 in the synchronize window starts the configured CompareTool Beyond Compare.
But this ins only the one tool - I suggest to allow for user (if he|she will want it at all - at the settings) - to get the context menu araised where all available tools will be listed - so user can choose on-the-fly - by which tool to continue the comparison process.