add support for regular expressions (basic and extended)

it intruduces regex support in search engine
and filtering/searching in all screens
This commit is contained in:
Andrzej Rybczak
2009-03-08 22:16:18 +01:00
parent 6be91a8216
commit 29f49415dd
17 changed files with 142 additions and 60 deletions

View File

@@ -276,6 +276,7 @@ void DefaultConfiguration(ncmpcpp_config &conf)
conf.playlist_disable_highlight_delay = 5;
conf.message_delay_time = 4;
conf.lyrics_db = 0;
conf.regex_type = 0;
}
void ReadKeys(ncmpcpp_keys &keys)
@@ -646,6 +647,10 @@ void ReadConfiguration(ncmpcpp_config &conf)
{
conf.set_window_title = v == "yes";
}
else if (cl.find("regular_expressions") != string::npos)
{
conf.regex_type = REG_EXTENDED * (v != "basic");
}
else if (cl.find("lyrics_database") != string::npos)
{
if (!v.empty())