Closed ajkessel closed 5 months ago
I think I might be confused. Currently you can fzf for an genre, playlist, artist, album, or song if you don't provide a pattern arg to the program's play
cmd flags. Are you saying you'd want that same functionality for the list
cmd?
I think I might be confused. Currently you can fzf for an genre, playlist, artist, album, or song if you don't provide a pattern arg to the program's
play
cmd flags. Are you saying you'd want that same functionality for thelist
cmd?
I think that is what I'm saying -- you can't fzf to see what's available, before picking what you want to play, right?
Sure you can, just execute:
play -s
play -r
play -a
play -p
play -g
And it takes you into fzf. You can send a kill sig if you want to abort. The List
cmd doesn't currently have fzf integrated, because it is really just for dumping out the contents of a collection. Please let me know if I am totally misunderstanding.
Oh! I didn't realize that's how those options worked. To be honest, I haven't come across fzf before this. Perhaps you want to tweak the help description if the user doesn't know fzf.
I tried to make it clear with the usage list-out, indicating the no-arg variants pipe in fzf, but maybe that's not inherently obvious. Thank you for the suggestion!
My suggestion is just changing "fzf" to something like "interactive search" to clarify what it is doing.
Would you consider adding the ability to search for content by pattern? This would just require adding a command-line option that would accept a pattern and then grepping that pattern from the osascript output.
For example,
would search for every artist with the string "Monk" in it, which would capture "Thelonious Monk," as well as "The Thelonious Monk Quartet," etc.
Maybe easier to just have it be a substring rather than regexp match so
-r 'monk'
would return everything that has "monk" anywhere in it.