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.

Children not visible and not indented in list view

See original GitHub issue

What happened?

Here’s the snippet for testing:

const this_path = dv.current().file.path
function containsMention(list) {
	for (let outlink of list.outlinks) {
		if (dv.page(outlink.path).file.path == this_path) return true;
	}
	return false;
}

let mentions = dv.pages('#daily AND "journal" AND [[#]]').where(t => t.file.lists.length > 0).file.lists.where(l => containsMention(l)).groupBy(t => t.path).sort(k => k.key, 'desc')

console.log("--------------------")

for (let group of mentions) {
	dv.header(1, dv.fileLink(group.key) + ":")
	console.log(group.rows)
        dv.list(group.rows.text)
}

Put the snippet in a note. It will be your “gathering place” for all mentions of this note in Dailies. Then create a daily with this content:

  • [[the name of your note]]
    • whatever
    • blah blah

The children won’t be shown, even though they still exists within the matched list when you inspect it.

DQL

No response

JS

No response

Dataview Version

0.5.41

Obsidian Version

0.14.15

OS

Windows

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
blacksmithgucommented, Jul 10, 2022

Use taskList to render list elements obtained via file.lists. I understand this may be confusingly named, but lists and tasks use the same underlying data represenation. dv.list is just for simple linear lists.

dv.taskList(group.rows);
0reactions
DeutscheGabannacommented, Jul 10, 2022

Use taskList to render list elements obtained via file.lists. I understand this may be confusingly named, but lists and tasks use the same underlying data represenation. dv.list is just for simple linear lists.

dv.taskList(group.rows);

This resolved the issue and even improved formatting. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Child-category indent not working in list view - Support - Kriesi.at
I have a sidebar widget for the blog page on an Enfold install, and the category hierarchy is only visible on the page...
Read more >
QTreeView: no children displayed when indentation level is 1
The problem was my assumption that an indentation level of 1 represented an indentation of one tree view column. Actually it is the...
Read more >
Indent childern in admin list screen - WordPress.org
I have a CPT set as hierarchical and the parent / child relationship works as expected except for the admin view all post-type...
Read more >
Parent Child tasks - Indents not showing
Hello,. Is it possible to check that all the Tasks are still in order by clicking into the grey column header above tasks...
Read more >
Hierarchy: Indent or Outdent Rows | Smartsheet Learning Center
You can create a hierarchy on your sheet by indenting rows. ... Hierarchy is created from the child row. It is not created...
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