obsidian-dataview icon indicating copy to clipboard operation
obsidian-dataview copied to clipboard

Indent lines don't show in task queries in live preview editing view

Open NomarCub opened this issue 3 years ago • 7 comments

What happened?

Indentation guides (or relationship lines) don't show up. They are turned on and show up in editing and reading view when there are bullets / more tasks under a task, and rarely show up in dataview queries too, but they are erratic and not present most of the time.

This screenshot is from the Obsidian sandbox vault, I only added one sub list item on the left and the query on the top left. I first mentioned this in the fold indent issue.

image

Dataview query

task

Dataview Version

0.5.41

Obsidian Version

0.15.9

OS

Windows

NomarCub avatar Jul 30 '22 10:07 NomarCub

I'm afraid I can't repro this:

image

AB1908 avatar Aug 04 '22 11:08 AB1908

I checked again with a fresh install and I can repro still. However, I noticed it's fine in reading view, and lines are only missing in editing view.

NomarCub avatar Aug 04 '22 11:08 NomarCub

Edit view? I don't think you can see dataviews in edit view. It is likely not an issue with Dataview in that case.

AB1908 avatar Aug 04 '22 13:08 AB1908

Editing view includes source view and live preview, both editable. You can see dataviews in live preview. (I might be mistaken about the terminology, but I think this is clear enough.)

NomarCub avatar Aug 04 '22 13:08 NomarCub

So you mean to say the lines don't show up in Live Preview?

AB1908 avatar Aug 04 '22 13:08 AB1908

Yes. Sorry for the confusion, as live preview is the only editing view where dataviews show up, I thought it was obvious. Obsidian also says "Current view: editing" in live preview.

NomarCub avatar Aug 04 '22 13:08 NomarCub

I see. I don't have the chops to fix this sadly.

AB1908 avatar Aug 04 '22 13:08 AB1908

@NomarCub Can you please change the title to something like "Indent lines dont show up in Live Preview"? This does not only occur for tasks but any indents. For example

```dataview
list  rows.file.link
from "somefolder"
group by type
sort file.name ASC
```

@AB1908 The same issue also occured in the Admonitions plugin (although I dont know if it was the same root cause). And they were able to fix it just fine: https://github.com/javalent/admonitions/issues/312

This bug has been around for more than a year now. Highly appreciated if this got fixed.