settings: support customizable tags separator

This commit is contained in:
Andrzej Rybczak
2012-09-12 21:44:27 +02:00
parent 6da434b5b2
commit d55070754d
21 changed files with 62 additions and 48 deletions

View File

@@ -161,6 +161,7 @@ void Configuration::SetDefaults()
{
mpd_host = "localhost";
empty_tag = "<empty>";
tags_separator = " | ";
song_list_columns_format = "(7f)[green]{l} (25)[cyan]{a} (40)[]{t|f} (30)[red]{b}";
song_list_format = "{{%a - }{%t}|{$8%f$9}$R{$3(%l)$9}}";
song_list_format_dollar_free = RemoveDollarFormatting(song_list_format);
@@ -882,6 +883,11 @@ void Configuration::Read()
{
empty_tag = v; // is this case empty string is allowed
}
else if (name == "tags_separator")
{
if (!v.empty())
tags_separator = v;
}
else if (name == "empty_tag_color")
{
if (!v.empty())