* Moved YAML library import to index plug (so no async syscalls anymore) should speed things up * Merged task and item indexing * Merged tasks plug into index (questionable) * taskstate is now no longer a tag, but needs to be configured via configs
636 B
636 B
#meta/api #maturity/beta
Implements APIs for defining custom task states. Currently extremely basic.
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
Example
taskState.define {
name = "TO DO"
}
taskState.define {
name = "IN PROGRESS"
}
taskState.define {
name = "DONE",
done = true
}
Implementation
-- priority: 50
taskState = taskState or {}
function taskState.define(spec)
config.set({"taskStates", spec.name}, spec)
end