APIs to define Task > Custom states.
API
taskState.define(def)
Defines a custom task state. Options:
name: name of the statedone: whether or not the state should be considered “done” or not, used by theTask: Remove Completedcommand
Primarily used to offer code completion for custom task states for now.
Example
taskState.define {
name = "TO DO"
}
taskState.define {
name = "IN PROGRESS"
}
taskState.define {
name = "DONE",
done = true
}Use:
- [TO DO] Still to do
- [DONE] Task already completed