Page 1 of 1

Files/Compare by content: content plugin

Posted: 2017-07-14, 17:33 UTC
by Evds
In the "Files/Compare by content" function we have the ability to select
whether we want to compare two files in text format or in binary format.

It would be nice if we also had the ability to select a content plugin.
The selected content plugin would then return a string for each file and those
two returned strings would then be compared.

usage example:
We could write a content plug which returns all the metadata (exif/iptc/xmp) of a jpeg in one string.
We select two jpegs files, select "files/compare by content" and the plugin
we wrote and we have an overview of the difference in the metadata of those
two jpegs.

Posted: 2017-07-15, 07:45 UTC
by Lefteous
Already implemented

Posted: 2017-07-15, 11:02 UTC
by Hacker
Lefteous,
Already implemented
How?

Roman

Posted: 2017-07-16, 09:40 UTC
by HolgerK
How?
Synchronize Directories:
[x] By content [>>]
[x] Use plugin compare function

Okay, it's another place and the result is only a boolean expression, but somehow this function exists..

Regards
Holger

Posted: 2017-07-16, 16:17 UTC
by Lefteous
he result is only a boolean expression
The selected content plugin would then return a string for each file and those
two returned strings would then be compared.
What else could be the result of a comparison?

Re: Files/Compare by content: content plugin

Posted: 2017-07-16, 16:36 UTC
by HolgerK
Evds wrote:In the "Files/Compare by content" function we have the ability to select whether we want to compare two files in text format or in binary format.
+ (this was the suggestion) Compare of meta information in textual representation.

Regards
Holger

Posted: 2017-07-16, 17:18 UTC
by Hacker
Lefteous,
What else could be the result of a comparison?
A display of the difference.

Roman

Posted: 2017-07-16, 17:35 UTC
by HolgerK
BTW: It could be easily be implemented by reusing the same mechanism already in use for user defined tool tips (Custom fields by file type).
This way all existing content plugins could be reused to create a summary of meta information which could be compared inside the Compare by Content dialog.

Regards
Holger

Posted: 2017-07-16, 19:15 UTC
by Lefteous
Hacker wrote:Lefteous,
What else could be the result of a comparison?
A display of the difference.

Roman
Like a custom compare result icon?

Posted: 2017-07-16, 20:07 UTC
by Hacker
Lefteous,
Like a custom compare result icon?
No, like the actual difference in the text being compared.

Roman