Quote:
Originally Posted by kingsinger
If I want to remove the context grouping, do I need to modify my query or is that something I need to change in my template? If it's in the template, how do I change the template to get that result?
|
I just created a template called flat.json and deleted entries for projects, contexts and folders. I also removed any indenting. When I tried it it just gave me a flat list of tasks - is that something like what you're after?
Code:
{
"indent": 0,
"dateFormat": "%Y-%m-%d",
"depth": 0,
"Nodes": {
"TaskStart": "- $name",
"TaskGroupStart": "- $name"
},
"NodeAttributeDefaults": {
"date_to_start": "",
"date_due": "",
"date_completed": "",
"link" : "",
"name": "",
"project": "",
"context": "",
"flagged": "",
"note": ""
},
"indentString": "\t",
"NodeAttributes": {
"date_to_start": " @start($value)",
"date_due": " @due($value)",
"date_completed": " @done($value)",
"link": "$value",
"name": "$value",
"project": " @project($value)",
"context": " @context($value)",
"flagged": " @flagged",
"note": ""
}
}
...EDIT...
Just realised you'll need to write this as a taskpaper or text file, if the tool notices you're writing markdown then there's some custom code that handles the title #'s and line spacing that will insert blank headings.
...EDIT...
V2.1.4 just pushed - it comes with a "flat" template like the above and I've fixed it so it works for markdown - it's a nicer solution :-)
Note that the
install procedure is slightly different and won't require you to mess with the runner script each and every time.