Space-delimited tags?
I space-delimit my tags, in large part because I use #hashtags, and I don't include spaces, so comma-delimiting seems unnecessary (and is harder to type, and raises the question of whether leading/trailing spaces are included).
However, I just realized that this means my files are getting tagged in macOS with many very long, idiosyncratic tags (e.g., "#tag1 #tag2 #tag4 #tag8" is considered one tag).
Does the MultiMarkdown spec require tags to be delimited by commas? It would be nice if the user could set tag delimiters, either by saying what separates tags, and/or by defining a tag as beginning with a # symbol.
Thanks!
-
OK, so I went back through many old posts about tags and metadata, and I have learned:
1. MMD does indeed seem to require comma-delimiting in the metadata tags line, per [this response from Fletcher a while ago](https://multimarkdown.zendesk.com/hc/en-us/community/posts/360036182693/comments/360009053114):
> You use the MultiMarkdown metadata `tags:`, but then have a single string of terms with no commas. From a MultiMarkdown perspective this is a single long tag `#ios13 #apple_tutorial #geplant #41KW19`. Those terms are then parsed separately as in text tags (since they each start with `#`). If you want to include them all as `#foo` style tags, you should not include them as MultiMarkdown metadata.
2. In addition, from [my read of this exchange](https://multimarkdown.zendesk.com/hc/en-us/community/posts/360035426793/comments/360009216353), a string preceded by a hashtag is interpreted as a tag in nvUltra, but treated slightly differently in the metatadata.
> You don’t need hash tags in tag metadata. Only if you’re putting a tag randomly in the body of a note outside of the metadata. So in this case your tag is being read twice - once as the metadata tag “#tag” and once as a random tag “tag”.
So `#abc` is treated as an instance of the tag `abc` anywhere in a note. However, in the metadata, anything after the `tag:` keyword is treated as a tag (or comma-separated list of tags); so `abc` is treated as an instance of the tag `abc` — but `#abc` is treated as an instance of the tag `#abc`.I get the reason for the distinction — there's no reason to label something as a tag when it's part of a tag list in metadata, whereas everywhere else you need some way to indicate that you're using a tag. However, given that nvUltra makes it possible to add a tag in a note both ways, it might be a good idea to make this clear in the documentation. Maybe an additional line like so:> ## Tagging[¶](https://nvultra.com/help/tagging-and-metadata#tagging)
> Tags, as shown in the example above, are specified with a `tags:` line of metadata. This key can contain a comma-separated list of tags.
> Tags can also be specified inline in your document using hashtags (`#tag`). These will be searchable as tags, but not synced to the filesystem.
> *If you use a `#` symbol in front of a tag ini the `tags:` line of metadata, the `#` symbol will be part of the tag. Elsewhere, the `#` will not be retained as part of the tag.*
I'd still love to be able to specify space-delimited tags in the metadata, but I realize that's unlikely.
0
Please sign in to leave a comment.
Comments
1 comment