mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Enhancement - complete.all.*
- Now supports "rc:complete.all.projects" to show all historical project names. - Now supports "rc:complete.all.tags" to show all historical tags names.
This commit is contained in:
parent
9718fa6924
commit
67debb93f7
1 changed files with 13 additions and 3 deletions
|
@ -200,8 +200,13 @@ std::string handleCompletionProjects ()
|
||||||
std::vector <Task> tasks;
|
std::vector <Task> tasks;
|
||||||
context.tdb.lock (context.config.get ("locking", true));
|
context.tdb.lock (context.config.get ("locking", true));
|
||||||
handleRecurrence ();
|
handleRecurrence ();
|
||||||
|
|
||||||
Filter filter;
|
Filter filter;
|
||||||
|
if (context.config.get (std::string ("complete.all.projects"), false))
|
||||||
|
context.tdb.load (tasks, filter);
|
||||||
|
else
|
||||||
context.tdb.loadPending (tasks, filter);
|
context.tdb.loadPending (tasks, filter);
|
||||||
|
|
||||||
context.tdb.commit ();
|
context.tdb.commit ();
|
||||||
context.tdb.unlock ();
|
context.tdb.unlock ();
|
||||||
|
|
||||||
|
@ -292,8 +297,13 @@ std::string handleCompletionTags ()
|
||||||
std::vector <Task> tasks;
|
std::vector <Task> tasks;
|
||||||
context.tdb.lock (context.config.get ("locking", true));
|
context.tdb.lock (context.config.get ("locking", true));
|
||||||
handleRecurrence ();
|
handleRecurrence ();
|
||||||
|
|
||||||
Filter filter;
|
Filter filter;
|
||||||
|
if (context.config.get (std::string ("complete.all.tags"), false))
|
||||||
|
context.tdb.load (tasks, filter);
|
||||||
|
else
|
||||||
context.tdb.loadPending (tasks, filter);
|
context.tdb.loadPending (tasks, filter);
|
||||||
|
|
||||||
context.tdb.commit ();
|
context.tdb.commit ();
|
||||||
context.tdb.unlock ();
|
context.tdb.unlock ();
|
||||||
|
|
||||||
|
@ -470,7 +480,7 @@ std::string handleVersion ()
|
||||||
"dateformat debug default.command default.priority defaultwidth due locale "
|
"dateformat debug default.command default.priority defaultwidth due locale "
|
||||||
"displayweeknumber echo.command locking monthsperline nag next project "
|
"displayweeknumber echo.command locking monthsperline nag next project "
|
||||||
"shadow.command shadow.file shadow.notify weekstart editor import.synonym.id "
|
"shadow.command shadow.file shadow.notify weekstart editor import.synonym.id "
|
||||||
"import.synonym.uuid longversion "
|
"import.synonym.uuid longversion complete.all.projects complete.all.tags "
|
||||||
#ifdef FEATURE_SHELL
|
#ifdef FEATURE_SHELL
|
||||||
"shell.prompt "
|
"shell.prompt "
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue