Thanks so much for sharing this! @DeutscheGabanna and I were working on something similar, but for all DV keys/fields, not just ones in the frontmatter. Really neat to see an example for just frontmatter!
A couple things I learned from that thread:
- For inline fields at least, dataview will essentially double-count any with capitalization or punctuation because it silently adds a normalized all-lower-case-dashes-in-place-of-spaces-ignore-other-punctuation version of the key to the page. Does it do that for frontmatter too?
- I found a Map more intuitive than an array holding an object for the work you’re doing with
uniqueKeyArray
, but I haven’t experimented with making adv.table
of a map yet. - At the bottom of the code snippet in this post there’s code to do the displaying of filenames with keys that show up less than 3 times. I would probably change it to use
localeCompare
in my sorts now that I know about that thanks to your post!
Thanks again for sharing!