Children not visible and not indented in list view
See original GitHub issueWhat 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:
- Created a year ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Use
taskList
to render list elements obtained viafile.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.This resolved the issue and even improved formatting. Thanks.