-
Notifications
You must be signed in to change notification settings - Fork 484
conditionals
David Kågedal edited this page Apr 16, 2016
·
2 revisions
It is difficult to come up with a readable and powerful enough format. See mailing list threads:
- http://sourceforge.net/mailarchive/forum.php?thread_name=20070902103212.GG15547%40fsst.voodoo.lan&forum_name=cmus-devel
- http://sourceforge.net/mailarchive/forum.php?thread_name=20070909185105.GL3028%40HAL6000D.tc.ph.cox.net&forum_name=cmus-devel
- http://sourceforge.net/mailarchive/forum.php?thread_name=20110316005729.GA23442%40molb.org&forum_name=cmus-devel
Example for proposed format:
format_trackwin= %if(%or(%a,%l,%t),%3n. %t%if(%{compilation}, \(%a\),)%= %y,%f%=) %d
format_playlist= %if(%or(%a,%l,%t),%-25%if(%{compilation},%A,%a) %3n. %t%if(%{compilation}, \(%a\),)%= %y,%f%=) %d
###Survey
- Is the proposed format acceptable?
- Should we use flex/bison to parse the language? (less error-prone and smaller code-base)
I'm rather fond of how Quod Libet handles tags: https://quodlibet.readthedocs.org/en/latest/guide/tags/patterns.html --- David