mirror of
https://git.webmeisterei.com/webmeisterei/todoist-taskwarrior.git
synced 2023-12-21 10:23:00 +01:00
Allow user to interactively specify project
This commit is contained in:
parent
e22c8650ae
commit
a5cc643d1e
@ -183,6 +183,7 @@ def add_task_interactive(**task_data):
|
|||||||
y - add task
|
y - add task
|
||||||
n - skip task
|
n - skip task
|
||||||
d - change description
|
d - change description
|
||||||
|
P - change project
|
||||||
p - change priority
|
p - change priority
|
||||||
t - change tags
|
t - change tags
|
||||||
r - change recur
|
r - change recur
|
||||||
@ -214,6 +215,15 @@ def add_task_interactive(**task_data):
|
|||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
|
||||||
|
# Edit project
|
||||||
|
'P': lambda: {
|
||||||
|
**task_data,
|
||||||
|
'project': io.prompt(
|
||||||
|
'Set project',
|
||||||
|
default=task_data['project'],
|
||||||
|
),
|
||||||
|
},
|
||||||
|
|
||||||
# Edit priority
|
# Edit priority
|
||||||
'p': lambda: {
|
'p': lambda: {
|
||||||
**task_data,
|
**task_data,
|
||||||
|
Loading…
Reference in New Issue
Block a user