CmdNews: Add news item about the .by attribute modifier

This commit is contained in:
Tomas Babej 2021-10-01 23:20:09 -04:00
parent d7d2f938c5
commit 3f59b12512
No known key found for this signature in database
GPG key ID: B0747C6578F7D2F5

View file

@ -398,6 +398,24 @@ void CmdNews::version2_6_0 (std::vector<NewsItem>& items) {
" You can try it out - 'task add Prepare for an 👽 invasion!'"
);
items.push_back(unicode_12);
/////////////////////////////////////////////////////////////////////////////
// - The .by attribute modifier
NewsItem by_modifier (
false,
"The .by attribute modifier",
"",
"",
" A new attribute modifier '.by' was introduced, equivalent to the operator '<='.\n",
" This modifier can be used to list all tasks due by the end of the months,\n"
" including the last day of the month, using: 'due.by:eom' query",
" There was no convenient way to express '<=' relation using attribute modifiers.\n"
" As a workaround, instead of 'due.by:eom' one could use 'due.before:eom+1d',\n"
" but that requires a certain amount of mental overhead.",
""
);
items.push_back(by_modifier);
}
////////////////////////////////////////////////////////////////////////////////