aome510 / spotify-player

A Spotify player in the terminal with full feature parity
MIT License
2.95k stars 131 forks source link

Add optional fuzzy search algorithm #468

Closed juliamertz closed 2 weeks ago

juliamertz commented 3 weeks ago

I discovered that the current search algorithm struggles with queries that start with a single letter followed by a space. To address this issue, I've added a new feature flag that enables fuzzy searching. This makes searching a lot more flexible and also sorts the results by their relevance.

This is my first time using feature flags, so I am open to feedback on the control flow implementation.

juliamertz commented 3 weeks ago

Accidentally included a commit i did not mean to.

aome510 commented 2 weeks ago

Look like CI failed but it's unrelated to your change. I can take a look and fix later today