aboutsummaryrefslogtreecommitdiffstats
path: root/PLAN.md
diff options
context:
space:
mode:
authorsalmonik <raisersoft@proton.me>2026-05-08 01:12:31 +0200
committersalmonik <raisersoft@proton.me>2026-05-08 01:12:31 +0200
commit0f00616dca071750381234b5c59c8ec1e71b28ed (patch)
tree35d01b2ea8bbff458df5cb39ccc7d7b5dc6640ae /PLAN.md
parentAdd desktop notifications for track changes, queue end, and errors (diff)
downloadrsplayer-0f00616dca071750381234b5c59c8ec1e71b28ed.tar.gz
rsplayer-0f00616dca071750381234b5c59c8ec1e71b28ed.zip
Fix shuffle first song not being shuffled
update_shuffle_indices now shuffles all indices when position is 0 (no tracks have been played yet), so the first track played is random instead of always being tracks[0]. Directory playback now uses q.current() to pick the first track, resolving through shuffled indices when shuffle is active. Also pins notify-rust version in Cargo.toml and removes PLAN.md (superseded by TODO.md).
Diffstat (limited to '')
-rw-r--r--PLAN.md28
1 files changed, 0 insertions, 28 deletions
diff --git a/PLAN.md b/PLAN.md
deleted file mode 100644
index d04e528..0000000
--- a/PLAN.md
+++ /dev/null
@@ -1,28 +0,0 @@
1# rsplayer Project Plan
2
3## Phase 1: Setup & Core ✓
41. Initialize Rust project, add dependencies: `clap` (CLI/autocompletion), `rusqlite` (SQLite), `symphonia`/`cpal` (audio), `directories` (XDG paths), `serde`/`toml` (config), `tokio` (daemon async), `reqwest` (scrobbling). ✓
52. Config stored at `$XDG_CONFIG_HOME/rsplayer/config.toml`: `music_paths` (array of directories to scan), `scan_interval` (optional periodic rescan interval), scrobbling credentials, daemon socket path. ✓
63. SQLite library schema: `artists`, `albums`, `tracks` tables. Implement `rsp scan` to scan all paths in config's `music_paths`, populate/update database. ✓
7
8## Phase 2: Daemon ✓
91. Unix socket daemon (path: `$XDG_RUNTIME_DIR/rsplayer/daemon.sock`) for IPC. ✓
102. Audio engine: Symphonia decode + CPAL output, support play/pause/stop/volume/seek. ✓
113. Queue: in-memory, `last` (append to end, default), `now` (play immediately, ending current song playback), `next` (insert after current). ✓
124. Shuffle modes: `none` (linear playback), `all` (shuffle all tracks), `album` (shuffle within album, structure ready). ✓
13
14## Phase 3: CLI & Completion ✓
151. Clap-based CLI with all subcommands. ✓
162. Shell completions for bash/zsh/fish/powershell/elvish (`rsp completions`). PARTIALLY
173. `rsp status`: show player state, current track, progress, volume, next 2-3 queue items. ✓
184. `rsp queue`: no arguments display current queue; with arguments add items (default `last` behavior). BUGGED
195. `rsp settings` subcommands: `get`, `set`, `list`, `unset` config values. ✓
206. `rsp scan`: `--force` full rescan, `--paths` override config paths. Uses symphonia for metadata. ✓
217. `rsp play`: flexible insert options (`-i`/`--now`, `-n`/`--next`, `-l`/`--last`). ✓
22
23## Phase 4: Polish
241. [ ] Queue state persistence - Save queue to disk so it survives daemon restarts.
252. [ ] Album shuffle mode - Implement proper `ShuffleMode::Album` (shuffle tracks within same album/folder).
263. [ ] Scrobbling - Last.fm and ListenBrainz support via configured credentials.
274. [ ] Logging and error handling improvements.
285. [ ] Systemd service unit for auto-start.