sknob/music v5.3.0 Release Notes, Search Edition!
When you can’t choose between two options, choose both?
In the release notes for the initial version of the new sknob.fr/music site, I wrote:
Feature-wise, the main addition is a filter/search function. I’m not sure how useful it is, but it’s there. After waffling some, I opted to only search through the titles and the on-screen metadata, not including the lyrics and other background info.
It later dawned on me that I had basically just duplicated the search function built into the browser. Duh!
Then again, on tablets and phones, the built-in search isn’t as easily accessible as in desktop browsers.
And the reason I didn’t go with full-text search is that the site contains a lot of lyrics and a lot of background info text, which means full-text searches don’t filter out a lot of songs...
Still, this arbitrary choice kept gnawing at me in the background, so yesterday, I decided to do something about it.
- The search field now includes a button on the right that toggles full-text search on and off.
- Clicking on the button reinitializes the search (and places the cursor in the search field).
- Hit
fto activate full-text search (if you’re not already inside the search field, naturally). - It works in both album mode and radio mode.
- Behind the scenes, all it took was filtering based on
innerTextfor simple searches andinnerHTMLfor full-text searches.
So now, you can just hit s and search for bits of song titles you remember, or if you’re looking for that underground sknob hit that uses the word “monkey”, you can switch to full-text search and find it instantly (the background info for that song is worth the read 😇).