Use Taskchampion to store Taskwarrior data

This replaces the TF2 task files with a TaskChampion replica.
This commit is contained in:
Dustin J. Mitchell 2022-12-15 02:52:47 +00:00 committed by Dustin J. Mitchell
parent 4b814bc602
commit 5bb9857984
24 changed files with 537 additions and 1362 deletions

View file

@ -112,15 +112,17 @@ int CmdExport::execute (std::string& output)
}
else
{
// There is a sortOrder, so sorting will take place, which means the initial
// order of sequence is ascending.
// sort_tasks requires the order array initially be identity
for (unsigned int i = 0; i < filtered.size (); ++i)
sequence.push_back (i);
// Sort the tasks.
if (sortOrder.size ()) {
sort_tasks (filtered, sequence, reportSort);
// if no sort order, sort by id
if (!sortOrder.size ()) {
reportSort = "id";
}
// Sort the tasks.
sort_tasks (filtered, sequence, reportSort);
}
// Export == render.