taskwarrior: Add project
formatter for next task project
This commit is contained in:
parent
0a1f92db36
commit
bd210c22ad
@ -13,6 +13,7 @@ class Taskwarrior(IntervalModule):
|
|||||||
* `{ready}` — contains number of tasks returned by ready_filter
|
* `{ready}` — contains number of tasks returned by ready_filter
|
||||||
* `{urgent}` — contains number of tasks returned by urgent_filter
|
* `{urgent}` — contains number of tasks returned by urgent_filter
|
||||||
* `{next}` — contains the description of next task
|
* `{next}` — contains the description of next task
|
||||||
|
* `{project}` — contains the projects the next task belongs to
|
||||||
"""
|
"""
|
||||||
|
|
||||||
format = 'Task: {next}'
|
format = 'Task: {next}'
|
||||||
@ -79,6 +80,7 @@ class Taskwarrior(IntervalModule):
|
|||||||
|
|
||||||
if self.next_task is not None:
|
if self.next_task is not None:
|
||||||
format_values['next'] = self.next_task['description']
|
format_values['next'] = self.next_task['description']
|
||||||
|
format_values['project'] = self.next_task['project']
|
||||||
|
|
||||||
self.output = {
|
self.output = {
|
||||||
'full_text': self.format.format(**format_values),
|
'full_text': self.format.format(**format_values),
|
||||||
|
Loading…
Reference in New Issue
Block a user