diff --git a/doc/config b/doc/config index 98cd1b86..45ab73ff 100644 --- a/doc/config +++ b/doc/config @@ -231,7 +231,7 @@ ## Note: colors can be nested. ## # -#song_list_format = {%a - }{%t}|{$8%f$9}$R{$3(%l)$9} +#song_list_format = {%a - }{%t}|{$8%f$9}$R{$3%l$9} # #song_status_format = {{%a{ "%b"{ (%y)}} - }{%t}}|{%f} # @@ -274,7 +274,7 @@ # #browser_sort_mode = type # -#browser_sort_format = {%a - }{%t}|{%f} {(%l)} +#browser_sort_format = {%a - }{%t}|{%f} {%l} # ##### columns settings ##### ## diff --git a/src/settings.cpp b/src/settings.cpp index 3bb7386a..33f40567 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -315,7 +315,7 @@ bool Configuration::read(const std::vector &config_paths, bool igno }); p.add("message_delay_time", &message_delay_time, "5"); p.add("song_list_format", &song_list_format, - "{%a - }{%t}|{$8%f$9}$R{$3(%l)$9}", [](std::string v) { + "{%a - }{%t}|{$8%f$9}$R{$3%l$9}", [](std::string v) { return Format::parse(v); }); p.add("song_status_format", &song_status_format, @@ -398,7 +398,7 @@ bool Configuration::read(const std::vector &config_paths, bool igno return verbose_lexical_cast(v); }); p.add("browser_sort_format", &browser_sort_format, - "{%a - }{%t}|{%f} {(%l)}", [](std::string v) { + "{%a - }{%t}|{%f} {%l}", [](std::string v) { return Format::parse(v, Format::Flags::Tag); }); p.add("song_columns_list_format", &song_columns_mode_format,