Base View: unique list item

A couple of days ago I opened a topic in the Help section Base: all unique values of lists to see if anyone knew how to write a base query that showed all then unique values of a list. For example, given

Note 1

---
list:
  - foo
  - bar
---

My note 1

and Note 2

---
list:
  - foo
  - qwe
---

My note 2

produce a list view base that looks like this

- foo
- bar
- qwe

With the default views I wasn’t able to replicate that, so I built a custom view

Each list item is rendered as a link, so that clicking on the item triggers a search of all notes that contain that value as a proprerty.

I don’t see myself writing the whole plugin, but if anyone is interested I’m willing to share a Github gist

Yes, please share the base mechanics behind it