Please, please please can you implement one little item before this build goes into Release: search/filter per-word, not on the entire string
For example, I have the most excellent tune:
"In Flames - Soundtrack To Your Escape - 11 - Dial 595-Escape"
Which I would really love to be able to get to by typing something like:
"in flames dial"
or
to get the whole album, it would be nice to be able to type:
"in flames escape"
In the current build, I have to match, char-for-char, the title as it appears in the playlist, which is a little tedious with the playlist format that I've chosen (<artist> - <year> - <album> - <track number> - <title>) -- for obvious reasons.
IOW, Instead of doing, eg:
- Code: Select All Code
// code for behaviour similar to current
for (size_t i = 0; i < stEntries; i++) {
const char *szTitleEntry = aszEntries[i];
if (stristr(szTitleEntry, szSearch) == NULL) {
// remove from list
}
}
I would love to have something like:
- Code: Select All Code
// code for request
size_t stSearchWords = split(szSearch, " ", &aszWords);
for (size_t i = 0; i < stEntries; i++)
{
const char *szTitleEntry = aszEntries[i];
for (size_t j = 0; i < stSearchWords; i++) {
if (stristr(szTitleEntry, aszSearchWords[j]) == NULL) {
// remove from the list
}
}
}
// of course, free out the search words array here (: