question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

Discussed in https://github.com/blacksmithgu/obsidian-dataview/discussions/521

<div type='discussions-op-text'>

Originally posted by DeutscheGabanna October 3, 2021 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, the original task doesn’t change its state if you check/uncheck its clone from dataview.

Please help</div>

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:5
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
sohanglalcommented, Sep 26, 2022

I haven’t pushed a PR before but would would love to give it a shot! Will read about it and push in a few days

0reactions
sohanglalcommented, Sep 28, 2022

I have created a PR

Read more comments on GitHub >

github_iconTop Results From Across the Web

Show modified task name in dataview that's still connected to ...
Let's suppose I have this task. - [ ] a task [unnecessary filler] and I want to query it and show it, slightly...
Read more >
Tasks should be filterable on the completed state · Issue #46 ...
A common scenario (if not the most common) when gathering tasks using dataview is likely to be able to pull all tasks that...
Read more >
The Beginner's Guide to DATAVIEW Obsidian Plugin
It is a powerful and versatile plugin for Obsidian that enables you to see ... The TASK type is specific to Obsidian tasks...
Read more >
Structure of a Query - Dataview - GitHub Pages
The dataview query language is a simple, structured, custom query language for quickly creating views on your data. It supports: Fetching pages associated...
Read more >
Dataview Examples : r/ObsidianMD - Reddit
First I have a note called Recently modified that displays files ... Tasks ```dataview TASK FROM "Notes" OR "People" WHERE file.name ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found