Applied using :filter. These filters work only until you change views or restart cmus. There is a separate article on temporary filters in cmus.
Permanent filters Defined using fset and activated with factivate. They remain active until manually removed.
Permanent filters are useful when you frequently need to filter your library in the same way, such as hiding certain file formats or isolating specific genres.
Permanent filters in cmus work by defining filter conditions with fset, applying them with factivate, and managing them in view 6 (Filters View). Filters can be based on metadata such as filename, duration, or genre.
Most common questions and brief, easy-to-understand answers on the topic:
What is the difference between temporary and permanent filters in cmus?
Temporary filters in cmus are applied using :filter and reset when switching views, whereas permanent filters set with fset and factivate persist until manually changed.
How do I create a permanent filter in cmus?
Use the :fset command to define a filter and :factivate to apply it. Example: :fset flac=filename="*.flac" followed by :factivate flac.
Can I apply multiple filters at once in cmus?
Yes, you can combine filters using logical operators. Example: :fset flac_and_large=filename="*.flac" & duration>300 applies both conditions.
How do I disable a permanent filter in cmus?
You can deactivate a filter using :factivate !filter_name. For example, :factivate !flac removes the FLAC filter.
How do I use playlists as filters in cmus?
You can create a playlist and switch to view 6 to use it as a filter. Use :save my_playlist to save a selection and apply it later.
Jonas works as project manager, web designer, and web developer since 2001. On top of that, he is a Linux system administrator with a broad interest in things related to programming, architecture, and design. See: https://www.j15k.com/
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. 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/cmus-permanent-filters">How to filter music in cmus permanently</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-sa/4.0/" target="_blank" rel="license noopener noreferrer">CC BY-SA 4.0</a>.</p>