How to create a playlist in cmus
Summary
To create a playlist in cmus, you need to add songs to the playlist view by selecting them and pressing y. You can then save the playlist using :save <filename>.pls and reload it later with :load <filename>.pls for easy access.
Introduction #
C* Music Player, cmus, is a powerful, lightweight, and terminal-based music player for Unix-like systems. While it may seem minimalistic at first, it offers a robust set of features, including playlist management. This guide will walk you through creating and managing playlists in cmus.
To create a playlist in `cmus`, you need to add songs to the playlist view.
First add songs, then save as playlist.
Adding songs to a playlist #
To add songs to a playlist (that does not exist yet), follow these steps:
- Open
cmusby typingcmusin your terminal. - Navigate to the file browser (
5key) or library (1key) to find your desired songs. - Select a song using the arrow keys and press
yto add it to the playlist. - Repeat the process for all the songs you want to include in your playlist.
To view the playlist, press 2.
Saving the playlist #
Once you have added songs to your playlist, you may want to save it for future use. Here is how:
- While in the playlist view (
2key), type:save <filename>.pls(e.g.,:save myplaylist.pls). - The playlist will be saved in your home directory (
~) unless you specify another path. - You can now reload this playlist later.
Loading a saved playlist #
To load a previously saved playlist:
- Open
cmus. - Type
:load <filename>.plsto load your saved playlist. - Your playlist should now appear in the playlist view (
2key).
Managing playlist entries #
- To remove a song from the playlist, navigate to the playlist view (
2key), select the song, and pressD. - To clear the entire playlist, type
:clearwhile in the playlist view.
By following the steps above, you can curate your favorite music collections and enjoy them with ease.
FAQ's #
Most common questions and brief, easy-to-understand answers on the topic:
How do I add multiple songs to a playlist in cmus?
You can add multiple songs to the playlist by navigating to the file browser (5 key) or library (1 key), selecting each song using the arrow keys, and pressing y to add them to the playlist view.
Where are cmus playlists saved by default?
By default, playlists saved with the :save <filename>.pls command are stored in your user's home directory (~) unless you specify a different path.
How do I remove a song from a playlist in cmus?
To remove a song from the playlist, switch to the playlist view (2 key), highlight the song, and press D.
Can I clear the entire playlist in cmus?
Yes, you can clear the entire playlist by typing :clear while in the playlist view (2 key).
Further readings #
Sources and recommended, further resources on the topic:
License
How to create a playlist in cmus by Jonas Jared Jacek is licensed under CC BY-NC-SA 4.0.
This license requires that reusers give credit to the creator. It allows reusers to distribute, remix, adapt, and build upon the material in any medium or format, for noncommercial purposes only. If others modify or adapt the material, they must license the modified material under identical terms. To give credit, provide a link back to the original source, the author, and the license e.g. like this:
<p xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/"><a property="dct:title" rel="cc:attributionURL" href="https://www.ditig.com/how-to-create-a-playlist-in-cmus">How to create a playlist in cmus</a> by <a rel="cc:attributionURL dct:creator" property="cc:attributionName" href="https://www.j15k.com/">Jonas Jared Jacek</a> is licensed under <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank" rel="license noopener noreferrer">CC BY-NC-SA 4.0</a>.</p>For more information see the Ditig legal page.