Enhancement - duplicate

- Implemented duplicate command.
- Now allows duplication (and demotion) of recurring tasks.
This commit is contained in:
Paul Beckingham 2009-06-16 22:40:59 -04:00
parent 8a22ac7cf2
commit 23f0a9658e
2 changed files with 61 additions and 43 deletions

View file

@ -204,7 +204,9 @@ std::string Context::dispatch ()
else if (cmd.command == "export") { out = handleExport (); }
/*
else if (cmd.command == "import") { out = handleImport (); }
*/
else if (cmd.command == "duplicate") { out = handleDuplicate (); }
/*
else if (cmd.command == "edit") { out = handleEdit (); }
*/
@ -449,7 +451,6 @@ void Context::parse ()
// Anything else is just considered description.
else
{
header ("parse description '" + *arg + "'");
if (foundSequence)
foundSomethingAfterSequence = true;
@ -473,7 +474,10 @@ void Context::parse ()
}
if (descCandidate != "" && noVerticalSpace (descCandidate))
{
header ("parse description '" + descCandidate + "'");
task.set ("description", descCandidate);
}
// TODO task.validate () ?