-
Notifications
You must be signed in to change notification settings - Fork 1
Editing your tasks
iKog-js provides a number of command to help you change your tasks. Before you use the commands, you need to understand that each task contains six elements: the description, projects, contexts, due date, priority, and finally the encrypted portion. There are four commands that you can use to change the tasks; REP or R, MOD or M, EXTEND or E, and EDIT or ED. These are explained below.
Note that all of the commands include the task ID which is either the number of task you want to change, or ^ or . if you want to act on the current task.
The replace command will replace the selected task, in its entirety by your new entry. To use the command, just follow it with the id of the task you want to change and the new task details.
REP 1 This is my new task description @Computer
The modify command only replaces those elements that you enter. So for example, if you only enter a context, then only the contexts will change. Imagine if you have the following task:
[01] This is my task #05 @Computer @Internet
If you now enter:
MOD 1 @Work
or
M 1 @Work
The task will now be:
[01] This is my task #05 @Work
I.e. only the context was changed.
In a similar way to the modify command, the extend command only changes the elements you enter, but rather than replacing them, it appends the new information. So again, imagine you have the following task:
[01] This is my task #05 @Computer @Internet
If you now enter:
EXTENDS 1 @Work
or
E 1 @Work
The task will now be:
[01] This is my task #05 @Computer @Internet @Work
I.e. only the context was extended. Note that you cannot extend the secret part of the task.
The final command does not actually make any changes but instead copies the task to the entry field, preceded by the modify command, M; this allows you to edit the task. If you delete the M and ID, you can use this as a way of duplicating a task.
EDIT 6
or
ED 6