mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 22:47:20 +02:00
Enhancement - completion
- Implemented _projects and _tags reports to assist with tab completion scripts.
This commit is contained in:
parent
8145b7b28e
commit
73378dd67e
4 changed files with 90 additions and 27 deletions
|
@ -106,6 +106,8 @@ void Cmd::load ()
|
|||
{
|
||||
if (commands.size () == 0)
|
||||
{
|
||||
commands.push_back ("_projects");
|
||||
commands.push_back ("_tags");
|
||||
commands.push_back (context.stringtable.get (CMD_ADD, "add"));
|
||||
commands.push_back (context.stringtable.get (CMD_APPEND, "append"));
|
||||
commands.push_back (context.stringtable.get (CMD_ANNOTATE, "annotate"));
|
||||
|
@ -182,7 +184,9 @@ void Cmd::allCustomReports (std::vector <std::string>& all) const
|
|||
// Commands that do not directly modify the data files.
|
||||
bool Cmd::isReadOnlyCommand ()
|
||||
{
|
||||
if (command == context.stringtable.get (CMD_CALENDAR, "calendar") ||
|
||||
if (command == "_projects" ||
|
||||
command == "_tags" ||
|
||||
command == context.stringtable.get (CMD_CALENDAR, "calendar") ||
|
||||
command == context.stringtable.get (CMD_COLORS, "colors") ||
|
||||
command == context.stringtable.get (CMD_EXPORT, "export") ||
|
||||
command == context.stringtable.get (CMD_HELP, "help") ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue