List all key in front matter

Things I have tried

What I’m trying to do

How to list every key value that we use as metadata for dataview plugins?

```dataviewjs
const fields = {}
dv.pages()
  .map(x => Object.keys(x)
  .forEach(x => fields[x] = -~fields[x]))

dv.header(3, 'Metadata fields')
dv.list(Object.keys(fields)
  .filter(x => x !== 'file')
  .sort((a, b) => fields[b] - fields[a])
  .map(x => `${x} (${fields[x]} notes)`))
```
1 Like

Solutions by Justdoitcc on 2022-10-12T16:34

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.