Skip to content

Add an file.headings array #2635

@Drakan1

Description

@Drakan1

Is your feature request related to a problem? Please describe.
Dataview works great for sorting by files / tags / lists. I like to keep projects in headings in a file. Hence, I want access to the headings data in an array

Describe the solution you'd like
An array of all of the file headings.

## Test
### Test2

file.headings -> [Test, Test2] for example or even an N-dimensional list [{"Test":[{"Test2":""}]}]. Similar to the built-in outline feature in Obsidian

Describe alternatives you've considered
n/a

Additional context
What I would really like to do embed the obsidian outline feature produced through a dataview query.
Using the above example
to produce:

- [[#Test]]
    - [[#Test 2]]

An array of all headings within the note

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions