Commit graph

5 commits

Author SHA1 Message Date
Jeremy Soller
55654e1231
Provide thumbnailing 2025-07-11 11:27:48 -06:00
Cristian Dinu
59cd966a30 fix(args): Eliminate the binary from arguments
For an executable the first argument is always the binary itself.
Because of this we have to skip it.

If we don't skip it, then it will be treated as another URL, therefore
`cosmic-player` will end up opening two URLs, one for the binary and one
for the actual file we want to play.

When opening multiple files `cosmic-player` will show the side panel /
playlist with the list of files.

The regression this commit fixed was introduced by `01be9152`.

Closes #96.
2025-03-27 08:49:09 +01:00
LinuxBoy-96
01be9152a7
feat: add help and version flags to argument parser 2025-03-26 16:42:39 +01:00
Josh Megnauth
701fc818f7 Playlist with multiple, mixed items
Prior to this commit, projects/playlists were limited to folders even if
file URLs were passed as arguments. With this commit both files and
folders are added to projects from the command line.

This doesn't affect opening a file from the GUI yet, but this patch
implements the required plumbing for that as well.
2025-03-13 12:17:54 -06:00
Josh Megnauth
3fd8641df2 Parse multiple URLs via command line
Closes: #44, #47

I used pico-args over clap because the former only adds about 1KB of
binary bloat whereas clap adds almost 1MB.
2025-03-13 12:17:54 -06:00