Things I have tried
What I’m trying to do
How to list every key value that we use as metadata for dataview plugins?
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)`))
```
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.