Compare files names only, without extension and prefix

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

Compare files names only, without extension and prefix

Post by KlepetoX » Sat 02 May, 2015 10:29

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: 5928
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 23 times
Been thanked: 235 times

Compare files names only, without extension and prefix

Post by Shmuel » Sat 02 May, 2015 13:42

KlepetoX wrote: How to ignore text between brackets?
Name:gsub("%[.-%]", "")

KlepetoX
Posts: 119
Joined: Sun 08 Jan, 2012 08:23
Location: Czech Republic
Has thanked: 1 time
Been thanked: 1 time

Compare files names only, without extension and prefix

Post by KlepetoX » Sun 03 May, 2015 06:09

It works well, thank you...

User avatar
Xerox
Posts: 287
Joined: Sun 20 Oct, 2019 15:50
Has thanked: 271 times
Been thanked: 2 times

Compare files names only, without extension and prefix

Post by Xerox » Thu 31 Oct, 2019 18:15

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”