From d8b8d4aedaeec600e9cbcb98e9d8f7c41094c29d Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Fri, 10 Jul 2009 13:51:24 +0200 Subject: [PATCH] allow for empty tag marker customization --- doc/config | 2 ++ doc/ncmpcpp.1 | 3 +++ src/settings.cpp | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/doc/config b/doc/config index 8f8d5e59..55b3011d 100644 --- a/doc/config +++ b/doc/config @@ -176,6 +176,8 @@ # #mouse_support = "yes" # +#empty_tag = "" +# #enable_window_title = "yes" # ## diff --git a/doc/ncmpcpp.1 b/doc/ncmpcpp.1 index e154978c..4cde59ec 100644 --- a/doc/ncmpcpp.1 +++ b/doc/ncmpcpp.1 @@ -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 diff --git a/src/settings.cpp b/src/settings.cpp index 6331eb07..195e1d65 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -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())