Files/Compare by content: content plugin

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Evds
Junior Member
Junior Member
Posts: 90
Joined: 2009-06-10, 11:09 UTC

Files/Compare by content: content plugin

Post 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.
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

Already implemented
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Lefteous,
Already implemented
How?

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post 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
Make our planet great again
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post 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?
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Re: Files/Compare by content: content plugin

Post 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
Make our planet great again
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Lefteous,
What else could be the result of a comparison?
A display of the difference.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post 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
Make our planet great again
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post 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?
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Lefteous,
Like a custom compare result icon?
No, like the actual difference in the text being compared.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Post Reply