Find dupes by base name

Features wanted...
Post Reply
bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Find dupes by base name

Post by bdeshi »

Don, can you add a new "base name" option to the find files | dupes | name dropdown?
This will consider items with <same base name>+<config | templates | increment affix> to be duplicates. Eg

Code: Select all

Dejavu.ttf
Dejavu-0001.ttf
Dejavu-0002.ttf
Alternatively, how do I group items named like this? Configuration > Styles > Grid style > Highlighted Groups (Smart Names) does not help. It seems to group greedily.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 60602
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Find dupes by base name

Post by admin »

"Highlighted Groups (Smart Names)" seems to work for such a case.
Attachments
Highlighted Groups (Smart Names).png
Highlighted Groups (Smart Names).png (25.35 KiB) Viewed 515 times

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: Find dupes by base name

Post by bdeshi »

Ah, but it breaks down when I have more items with just slight variations.
smartgrid.png
smartgrid.png (3.32 KiB) Viewed 496 times
Apparently according to my quick tests, anything with the same 4 starting chars are clumped into one group. If so, can it be better to apply a smarter algorithm that finds similar segments by splitting the name on space, dashes, periods etc? [edit: Although in this case that will still place too many items in one group.]
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 60602
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Find dupes by base name

Post by admin »

Hmm, I don't get it. Your screenshot looks alright to me.

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: Find dupes by base name

Post by bdeshi »

It looks alright because the option I've wished for does not exist.
find files pane | dupes pane | name dropdown | base name should group the items this way:

Code: Select all

DejaVu Sans.ttf
DejaVu Sans-0001.ttf
DejaVu Sans-0002.ttf
DejaVu Sans-0003.ttf
-----
DejaVu Sans Bold.ttf
DejaVu Sans Bold-0001.ttf
DejaVu Sans Bold-0002.ttf
-----
DejaVu Sans Bold Oblique.ttf
DejaVu Sans Bold Oblique-0001.ttf
DejaVu Sans Bold Oblique-0002.ttf
-----
DejaVu Sans Oblique.ttf
DejaVu Sans Oblique-0001.ttf
DejaVu Sans Oblique-0002.ttf
-----
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 60602
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Find dupes by base name

Post by admin »

OK, I see. I think this is too difficult.

Post Reply