OxygenCobalt / Auxio

A simple, rational music player for android
GNU General Public License v3.0
2.05k stars 134 forks source link

Use fuzzy search ordering #861

Open KraXen72 opened 1 month ago

KraXen72 commented 1 month ago

I search for a song called 'Rain' and it's like halfway down the list? shouldn't an exact match be at the top? Screenshot_20240829-203250_Auxio.jpg

(i was looking for the one at the bottom)

it's neither really a bug or feature request so that's why i didn't use the template

OxygenCobalt commented 1 month ago

Currently I sort alphabetically. I need to rank/filter by some kind of fuzzy search algorithm, but I've yet to find one that's very reliable (other than uFuzzy, which is JavaScript :/) @KraXen72

KraXen72 commented 1 month ago

time to port uFuzzy to kotlin

OxygenCobalt commented 1 month ago

Well, I can also embed it using an interpreter like Rhino, if I'm willing to bite anywhere from 0.5-1mb of app size, possible IPC weirdness, and having to polyfill in Intl since uFuzzy needs it. But otherwise it's kind of possible. It's about as intensive as a port.