mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CLI: Corrected list of keywords
This commit is contained in:
parent
276b53f2fc
commit
252a470ef8
2 changed files with 12 additions and 6 deletions
|
@ -407,9 +407,12 @@ void CLI::identifyFilter ()
|
|||
else if (raw == "from" ||
|
||||
raw == "since" ||
|
||||
raw == "to" ||
|
||||
raw == "for" ||
|
||||
raw == "until" ||
|
||||
raw == "-" ||
|
||||
raw == "for")
|
||||
raw == "before" ||
|
||||
raw == "after" ||
|
||||
raw == "ago")
|
||||
{
|
||||
a.tag ("FILTER");
|
||||
a.tag ("KEYWORD");
|
||||
|
|
|
@ -90,6 +90,9 @@ Interval getFilter (const CLI& cli)
|
|||
}
|
||||
else if (arg.hasTag ("KEYWORD"))
|
||||
{
|
||||
// Note: that KEYWORDS are not entities (why not?) and there is a list
|
||||
// in CLI.cpp of them that must be maintained and synced with this
|
||||
// function.
|
||||
args.push_back (raw);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue