mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Feature #934
- Feature #934, supports 'reserved.lines' to indicate a multi-line prompt for use in conjunction with 'limit:page' (thanks to Robert Gill). - Removed 'locale' from the taskrc.5 man page. - Added verbosity token 'sync'. - Fixed bug in size calculation for 'limit:page', but there is still one more. - Corrected unit test limit.t given the above fix.
This commit is contained in:
parent
9cbd729553
commit
c5ff24358c
11 changed files with 62 additions and 12 deletions
|
@ -451,6 +451,9 @@ bool Context::color ()
|
|||
// rc.verbose=nothing Show the absolute minimum.
|
||||
// rc.verbose=one,two Show verbosity for 'one' and 'two' only.
|
||||
//
|
||||
// TODO This mechanism is clunky, and should slowly evolve into something more
|
||||
// logical and consistent. This should probably mean that 'nothing' should
|
||||
// take the place of '0'.
|
||||
bool Context::verbose (const std::string& token)
|
||||
{
|
||||
if (! verbosity.size ())
|
||||
|
@ -470,7 +473,8 @@ bool Context::verbose (const std::string& token)
|
|||
verbosity[0] != "affected" && //
|
||||
verbosity[0] != "edit" && //
|
||||
verbosity[0] != "special" && //
|
||||
verbosity[0] != "project") //
|
||||
verbosity[0] != "project" && //
|
||||
verbosity[0] != "sync") //
|
||||
{
|
||||
verbosity.clear ();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue