From 6a5aef96b08c4e842033a4c34c6261d2bbcb7651 Mon Sep 17 00:00:00 2001 From: salmonik Date: Tue, 5 May 2026 22:59:43 +0200 Subject: Add flexible play command with position flags - Add -i/--now, -n/--next, -l/--last flags to play command: - 'play MUSIC' (default) adds to end of queue and plays - 'play -i MUSIC' inserts after current and skips to it - 'play -n MUSIC' inserts after current, doesn't skip - 'play -l MUSIC' adds to end of queue (default behavior) - Add insert_after_current and track_at methods to Queue in daemon - Update play command handler to handle position arguments - Fix queue display to correctly show playing track (compare track_idx instead of display_idx with current_position) --- TODO.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'TODO.md') diff --git a/TODO.md b/TODO.md index 347a529..efcc440 100644 --- a/TODO.md +++ b/TODO.md @@ -34,6 +34,8 @@ - [x] **Metadata extraction and display** - Extract ID3/metadata tags from audio files and display as "INDEX. ARTIST - TITLE", falls back to filename. Uses symphonia for metadata extraction. +- [x] **Flexible play command** - Added `-i/--now`, `-n/--next`, `-l/--last` flags to play command: `play MUSIC` (default - add to end and play), `play -i MUSIC` (insert after current and skip to it), `play -n MUSIC` (insert after current, don't skip), `play -l MUSIC` (add to end of queue). Also fixed queue display to correctly show playing track. + ## Potential Improvements - [ ] **Add error handling for audio playback** - Consider more robust error handling in the audio thread. -- cgit v1.2.3