Ext: Taskwarrior project handling

- Taskwarrior projects are now used as-is as tags, and also split on the '.' to
  represent project hierarchy as separate tags.
- Thanks to Josh Proehl.
This commit is contained in:
Paul Beckingham 2016-10-04 00:27:20 -04:00 committed by Thomas Lauf
parent 99d2d12f37
commit 2de2ecd440

View file

@ -45,7 +45,10 @@ print(json.dumps(new))
tags = [new['description']]
if 'project' in new:
tags.append(new['project'])
project = new['project']
tags.append(project)
if '.' in project:
tags.extend([tag for tag in project.split('.')])
if 'tags' in new:
tags.extend(new['tags'])