Autocomplete Tags in YAML front matter

Use case or problem

This is about tags in the metadata section.

---
# metadata section
tags: some_tag, #some_other_tag
---

# normal document

If I write some_tag I do not get any suggestions from existing tags. I might mistype it and not who up in a query for the real spelling.

If I type it with # like #some_other_tag I do get suggestions. But after saving/closing the document. It does not show up in searches for the tag. It does not count as tagged with some_other_tag.
I suspect it is treated as a comment but I don’t think it should.

Proposed solution

Two approaches:

  1. Don’t ignore tags with#. The search (and links, etc.) for tags:#some_other_tag should should the document with the line tags: #some_other_tag
  2. When typing something in the metadata section on the line beginning with tags: , suggest tags like when typing #

Current workaround (optional)

Use # for suggestions and the delete the #. :frowning_face:

1 Like