Show modified task name in dataview that's still connected to original task

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

2 Likes

The author of the plugin is working on a workaround for future release: Show modified task name in dataview that’s still connected to original task · Issue #523 · blacksmithgu/obsidian-dataview · GitHub

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.