Compare files names only, without extension and prefix

Here you can discuss any topic concerning Far macro commands.
KlepetoX
Posts: 129
Joined: Sun 08 Jan, 2012 08:23
Location: Czech Republic
Has thanked: 2 times
Been thanked: 1 time

Compare files names only, without extension and prefix

Post by KlepetoX »

Latest post of the previous page:

Yes, I have done measurements right now. Here is result:

Left panel: 11398 files
Right panel: 11391 files

After running macro:
Left panel: 11255 files selected
Right panel: 11252 files selected

Time:
Old macro: 32 seconds
Now with John Doe's macro: 3 seconds

Great work :-)
KlepetoX
Posts: 129
Joined: Sun 08 Jan, 2012 08:23
Location: Czech Republic
Has thanked: 2 times
Been thanked: 1 time

Compare files names only, without extension and prefix

Post by KlepetoX »

I am back with this macro. How to ignore text between brackets? Something like this:

04 My Room (Waiting For Wonderland)

should be the same as

02 My Room
Shmuel
Posts: 6815
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 41 times
Been thanked: 526 times

Compare files names only, without extension and prefix

Post by Shmuel »

KlepetoX wrote: How to ignore text between brackets?
Name:gsub("%[.-%]", "")
KlepetoX
Posts: 129
Joined: Sun 08 Jan, 2012 08:23
Location: Czech Republic
Has thanked: 2 times
Been thanked: 1 time

Compare files names only, without extension and prefix

Post by KlepetoX »

It works well, thank you...
User avatar
Xerox
Posts: 395
Joined: Sun 20 Oct, 2019 15:50
Has thanked: 354 times
Been thanked: 9 times

Compare files names only, without extension and prefix

Post by Xerox »

Thanks!
Is it possible to implement also Fuzzy SEARCH ?
Looks like it should be "almost the same", so probably it will be easy to implement?
I searched thru a google for Far Fuzzy Search, found nothing
Last edited by Xerox on Thu 31 Oct, 2019 18:15, edited 1 time in total.
Post Reply

Return to “Macro Commands Discussions”