allow for empty tag marker customization

This commit is contained in:
Andrzej Rybczak
2009-07-10 13:51:24 +02:00
parent 113e54c85c
commit d8b8d4aeda
3 changed files with 9 additions and 0 deletions

View File

@@ -176,6 +176,8 @@
#
#mouse_support = "yes"
#
#empty_tag = "<empty>"
#
#enable_window_title = "yes"
#
##

View File

@@ -212,6 +212,9 @@ Number of lyrics database in use. Currently supported DBs are:
.B media_library_left_column = a/y/g/c/p
Default tag type for left column in media library. Legend for possible letters is in SONG FORMAT section.
.TP
.B empty_tag = TEXT
Text that will be displayed, if requested tag is not set.
.TP
.B empty_tag_color = COLOR
Color of empty tag marker.
.TP

View File

@@ -712,6 +712,10 @@ void ReadConfiguration(ncmpcpp_config &conf)
if (!v.empty())
conf.song_window_title_format = v;
}
else if (cl.find("empty_tag") != std::string::npos)
{
conf.empty_tag = v; // is this case empty string is allowed
}
else if (cl.find("empty_tag_color") != std::string::npos)
{
if (!v.empty())