Merge pull request #530 from Xenopathic/taskwarrior-formats

taskwarrior: Add `project` formatter for next task project
This commit is contained in:
enkore 2017-01-15 16:38:06 +01:00 committed by GitHub
commit d1d12b8f23

View File

@ -13,6 +13,7 @@ class Taskwarrior(IntervalModule):
* `{ready}` contains number of tasks returned by ready_filter
* `{urgent}` contains number of tasks returned by urgent_filter
* `{next}` contains the description of next task
* `{project}` contains the projects the next task belongs to
"""
format = 'Task: {next}'
@ -79,6 +80,7 @@ class Taskwarrior(IntervalModule):
if self.next_task is not None:
format_values['next'] = self.next_task['description']
format_values['project'] = self.next_task['project']
self.output = {
'full_text': self.format.format(**format_values),