How do you add several tasks in once

Asked by psychoslave on 2013-01-21

Often I want to add several tasks I got under the form of a list :
- task1
- task2
- task3

I want to add this tasks as a subtask to an existing one. How can I do ? Idealy, I would like to be able to paste the list in my current task and press enter (with the cursor at the end of the last item), gtg detecting all tasks backward and creating the subtasks.

Note that a current possible work around is to use a shell command parsing the list and feeding gtg_new_task

Question information

Language:
English Edit question
Status:
Solved
For:
Getting Things GNOME! Edit question
Assignee:
No assignee Edit question
Solved by:
psychoslave
Solved:
2013-02-04
Last query:
2013-02-04
Last reply:
psychoslave (psychoslave) said : #1

Here is the magic line to add each line of the "tasks" file as a new task in gtg, with tags :

while read task;do echo "A description @tag1,tag2"|gtg_new_task $task -i;done<tasks