Let’s suppose I have this task.
- [ ] a task [unnecessary filler]
and I want to query it and show it, slightly modified through regex, to look like this
found 1 task:
- [ ] a task
You can quite easily modify the string with this snippet:
for (let i = 0; i < source.length; i++) {
source[i].text = source[i].text.replace("a", "b");
and then display it:
dv.taskList(source, false);
However, the task that is displayed has no connection to the original task whatsoever! As long as its displayed name differs in any way, it cannot be checked or unchecked.
Please help