allow for empty tag marker customization

master
Andrzej Rybczak 17 years ago
parent 113e54c85c
commit d8b8d4aeda
  1. 2
      doc/config
  2. 3
      doc/ncmpcpp.1
  3. 4
      src/settings.cpp

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

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

@ -712,6 +712,10 @@ void ReadConfiguration(ncmpcpp_config &conf)
if (!v.empty()) if (!v.empty())
conf.song_window_title_format = v; 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) else if (cl.find("empty_tag_color") != std::string::npos)
{ {
if (!v.empty()) if (!v.empty())

Loading…
Cancel
Save