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?

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

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

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

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