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

Enable fold intent in dataview task/list queries

Open j0rd1smit opened this issue 2 years ago • 8 comments

Is your feature request related to a problem? Please describe. Under the Editor settings, it is possible to enable fold indent, which makes it possible to hide subtasks. When this setting is enabled, subtasks in a real file look can be folded and look like this:

image

However, the fold indent is not present when I render these same tasks using the dataview query below:

TASK from "Project notes"
WHERE
contains(text, "#task")
AND
!completed
SORT file.name

image

This is a small example. However, I like to split my tasks into smaller subtasks, resulting in very long lists. So, if I can fold them using the result dataview list would be less overwelling.

Describe the solution you'd like Is it possible to make fold indent work with data view queries? However, I don't know if this is possible in the current dataview implementation.

Describe alternatives you've considered N/A.

Additional context N/A.

j0rd1smit avatar Jan 15 '22 10:01 j0rd1smit

Love to have this idea implemented. Having the same issue as well. Main Tasks Page where i Collect all tasks from all pages using dataview gets very long.

kngautham avatar Jan 15 '22 14:01 kngautham

+1

MugenLee avatar Jan 16 '22 17:01 MugenLee

Great Work! Any timelines on when this might be done?

kngautham avatar Jan 18 '22 08:01 kngautham

Great Plugin. Will you be working on this feature request?

I use dataview to collect all tasks from all pages onto a single page and this makes it difficult to view

If you let us fold the heading as described in this request, that would make it very easy for me.

kngautham avatar Jan 29 '22 07:01 kngautham

+1

Zygar avatar Mar 07 '22 01:03 Zygar

+1

vishae avatar Jul 05 '22 08:07 vishae

Indentation guides (or indent lines) would also be great here. Are they related enough, or should I open a separate request?

Edit: lines do work very infrequently, and not on mobile for me.

NomarCub avatar Jul 14 '22 21:07 NomarCub

@NomarCub can you make a separate FR?

AB1908 avatar Jul 30 '22 08:07 AB1908

+1 - I would love foldable tasks/subtasks in dataview!!

jamie9090 avatar Apr 02 '23 12:04 jamie9090