Page 1 of 1

Addition of 'Similar Name' option Find Duplicate Files' a

Posted: 2012-10-22, 11:03 UTC
by yosi_tz
Hello Total Commander Team and users

There is a feature I miss so much in Total Commander:
In 'Search Files'--'Advanced'—'Find Duplicate Files' a 'Similar Name' option is missing' and that’s the whole story.
For example:
If In a1 dir there are:
B1.jpg
B2.jpg
And In a2 dir there are:
B1.jpg
B2-1.jpg
a-B2.jpg
Attention: all files are in different sizes but, as you see, in exact or similar file names

When 'Similar Name', which I suggest to add, is marked: In the search result, I would like to get:
B1.jpg
B1.jpg

B2.jpg
B2-1.jpg
a-B2.jpg

Of course When 'Same Name' is marked: In the search result I will get:
B1.jpg
B1.jpg

A question can arise: how similar or what minimal similarity do you like ?
Well, I can think of 2 possibilities:
-1- a default of 1 character at least – the minimal solution for rapid implementation
-2- an option to the user to set the similarity, by setting the number of consecutive same characters in the tested files

When you manage, many graphic files' you often make processes that change there sizes, contents and make a minor change to their names.
Without adding the 'Similar Name' option, I suggested above, I can not get the groups of original an processed files.

Hope you consider my suggestion and add it very soon

Thanks a lot
Yosi shatz
Registered User

Posted: 2012-10-22, 11:22 UTC
by Vochomurka
Check this.

Posted: 2012-10-22, 12:20 UTC
by yosi_tz
thank you Vochomurka
I don't know how to use this plugin.
there are 7 properties (distanceLev,...), 6 operators and a value field.
In the above example I gave, what parameters and values should I use to get the correct result ?
thanks for your answer
yosi

Posted: 2012-10-22, 12:29 UTC
by ts4242
As far as you are not consider same contents, isn't Find files with a mask or RegEx enough?

Posted: 2012-10-22, 13:02 UTC
by yosi_tz
ts4242,
I intend to get the files list within the 'Find Duplicate Files' patern, which is more convenient

Posted: 2012-10-22, 13:23 UTC
by Vochomurka
1) Copy leven.ini to %COMMANDER_PATH%;
2) Create custom columns like this:

Code: Select all

Headers21=Distance\nSimilarity\nAverage\nContains\ns#1\ns#2\ns#3
Contents21=[=similarity.distanceLev]\n[=similarity.similarityLev]\n[=similarity.average]\n[=similarity.contains]\n[=similarity.simil1]\n[=similarity.simil2]\n[=similarity.similRO]
(in fact, only "Similarity" and "Average" are useful);
3) Enter your string as a value of the "Phrase" key in leven.ini (or make a button calling Similarity.exe with the ? parameter);
4) Ctrl+B in your path;
5) Sort by "Similarity" and/or "Average";
6) File(s) with maximum number SHOULD BE your aim.

Posted: 2012-10-22, 15:12 UTC
by yosi_tz
I appreciate you for your detail answer,
I did what you said but it does not seem to fulfill my request.
Why ?
Because in the regular search result I get the files list along with their path, but when I switch to Similarity columns the path lists are gone and I get only the files list which is invaluable to me.
I think that my suggestion of adding a 'Similar Files' to 'Find Duplicate Files' is much more elegant and convenient

Thanks
Yosi

Posted: 2012-10-22, 15:32 UTC
by Vochomurka
I think that my suggestion of adding a 'Similar Files' to 'Find Duplicate Files' is much more elegant and convenient
May be, but Mr Ghisler will hardly do that. We have to use means available right now.
Don't use search, just columns. If you can't live without search, try to "Feed to listbox", and then switch to the "Similarity" custom columns.

Posted: 2012-10-23, 05:07 UTC
by yosi_tz
Sorry, I did again what you said and I still have no idea how, by using 'Similarity' custom columns I can find the similar or exact files in various directories.
By now I have no solution I can successfully use

Thank you
Yosi

Posted: 2012-10-23, 06:20 UTC
by Vochomurka
Not "similar or exact files", but "files with similar or exact names", as you have written in your starting post (more strictly: "files whose names are similar or exactly the same", right?).
In such case I can't help you. I've used this plugin once or twice, and it has helped me in resembling cases. I'm afraid it's the only way.