mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
Variant
- The ::operator_match (and by extension operator_nomatch) now obey the rc.regex setting.
This commit is contained in:
parent
9e0ea1cb4a
commit
dcc5dbf16a
3 changed files with 45 additions and 13 deletions
|
@ -126,6 +126,7 @@ int Context::initialize (int argc, const char** argv)
|
|||
Lexer::dateFormat = config.get ("dateformat");
|
||||
Variant::dateFormat = config.get ("dateformat");
|
||||
Variant::searchCaseSensitive = config.getBoolean ("search.case.sensitive");
|
||||
Variant::searchUsingRegex = config.getBoolean ("regex");
|
||||
|
||||
parser.initialize (argc, argv); // task arg0 arg1 ...
|
||||
|
||||
|
@ -148,6 +149,14 @@ int Context::initialize (int argc, const char** argv)
|
|||
|
||||
// Create missing config file and data directory, if necessary.
|
||||
parser.applyOverrides ();
|
||||
|
||||
// These may have changed.
|
||||
// TODO Uh oh.
|
||||
Lexer::dateFormat = config.get ("dateformat");
|
||||
Variant::dateFormat = config.get ("dateformat");
|
||||
Variant::searchCaseSensitive = config.getBoolean ("search.case.sensitive");
|
||||
Variant::searchUsingRegex = config.getBoolean ("regex");
|
||||
|
||||
createDefaultConfig ();
|
||||
|
||||
// Initialize the color rules, if necessary.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue