News for hackers. Stuff that matters.
Re:Show HN: kew – A Terminal Music Player for Linux by ravachol on Friday October 04, 2024 @09:39PM (#41747079)
Like you said, it just takes the first result it finds. There is -e for exact search, which solves some problems, but it's not a full blown solution.
Re:Show HN: kew – A Terminal Music Player for Linux by yarg on Friday October 04, 2024 @10:43PM (#41747348)
I'm thinking {-s, -l, -a, -p} for {song, album, artist, playlist}.

Unlike the -e solution, it wouldn't make the command significantly more verbose than the default option.

You could also print a list of commands for the specific options (or allow for index based selection) in cases where there were collisions.

Re:Show HN: kew – A Terminal Music Player for Linux by ravachol on Friday October 04, 2024 @10:47PM (#41747364)
That's already mostly in. From the readme:

kew dir <album name> (sometimes it's necessary to specify it's a directory you want)

kew song <song> (or a song)

kew list <playlist> (or a playlist)

The directory can be an artist or an album, so there's still ambiguity there. But kew cannot differentiate between the two. It matches against files or against directories.

Re:Show HN: kew – A Terminal Music Player for Linux by yarg on Friday October 04, 2024 @11:01PM (#41747430)
Yeah, to fix that you'd need to add support for media metadata, which I imagine is a little further than you'd want to go.