mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
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:
parent
067643c64a
commit
6557814909
4 changed files with 10 additions and 2 deletions
1
AUTHORS
1
AUTHORS
|
@ -41,3 +41,4 @@ suggestions:
|
|||
Aaron Evers
|
||||
David Patrick
|
||||
Georg Sauthoff
|
||||
Josh Proehl
|
||||
|
|
|
@ -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
3
NEWS
|
@ -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
|
||||
|
||||
|
|
|
@ -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'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue