Skip to content

Vague idea: automatically crease empty dataview results #59

@antifuchs

Description

@antifuchs

My daily note templates have a "review" section where I have a dataview like the following:

    ```dataview
    TASK FROM "Journal"
    WHERE !completed AND date != date(today)
    GROUP BY date
    ```

I'd love for that section to be unfolded if the dataview query has results, and be folded when it doesn't.

Currently I'm using "Start unfolded" in the creases template behavior setting, which works for the initial creation of the daily note, but if I don't get to review those tasks right at the start of my day, the section is folded and I might not get to remember to review them.

So I think it would be neat if there was a "conditional crease" that checks if a contained dataview has results, and if so, unfolds the section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions