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
parent 067643c64a
commit 6557814909
4 changed files with 10 additions and 2 deletions

View file

@ -41,3 +41,4 @@ suggestions:
Aaron Evers
David Patrick
Georg Sauthoff
Josh Proehl

View file

@ -12,6 +12,9 @@
(thanks to Jelle van der Waa).
- Added missing man page link
(thanks to David Patrick).
- 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).
------ current release ---------------------------

3
NEWS
View file

@ -1,7 +1,8 @@
New Features in 1.1.0
-
- Taskwarrior integration hook now uses a project 'Home.Garden' as a single
tag 'Home.Garden' as well as individual 'Home', 'Garden' tags.
Features not implemented in 1.1.0

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'])