Skip to content

Make :clear -p work properly for playlists - #1523

Merged
flyingmutant merged 1 commit into
cmus:masterfrom
pgaskin:clear-marked-pl
Oct 3, 2026
Merged

flyingmutant merged 1 commit into
cmus:masterfrom
pgaskin:clear-marked-pl

Conversation

@pgaskin

@pgaskin pgaskin commented Sep 24, 2026

Copy link
Copy Markdown
Member

Previously, :clear in the playlist view was silently ignored unless the cursor was in the track window, and an explicit :clear -p cleared the visible playlist while :add -p adds to the marked one, which made cmus-remote -c unreliable since it does clear/add -p.

Now, :clear -p always clears the marked playlist (like :add -p), and :clear in the playlist view clears the selected playlist from either pane (like win-remove/win-update/pl-rename/pl-export).

fixes #1423
closes #1427 (replaces it)

Previously, :clear in the playlist view was silently ignored unless the
cursor was in the track window, and an explicit :clear -p cleared the
visible playlist while :add -p adds to the marked one, which made
cmus-remote -c unreliable since it does clear/add -p.

Now, :clear -p always clears the marked playlist (like :add -p), and
:clear in the playlist view clears the selected playlist from either
pane (like win-remove/win-update/pl-rename/pl-export).

fixes cmus#1423

Co-Authored-By: jdholtz <[email protected]>
@flyingmutant
flyingmutant merged commit a4d8056 into cmus:master Oct 3, 2026
6 checks passed
@BrewTestBot BrewTestBot mentioned this pull request Oct 28, 2026
1 task done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable clearing a playlist when its title is selected (left view), not just when the songs it contains (right view) are selected

2 participants