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:

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: 6819
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 41 times
Been thanked: 528 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”