It would be great to be able to display tag values from a note.
Is it possible to add, for example, two special sequences:
$iftag:NAME:STRING1:STRING2 - returns STRING1 if tag named NAME exists in file (as #NAME or in frontmatter) or STRING2 otherwise. If :STRING2 part is omitted, it equals to empty string. If whole :STRING1:STRING2 part is omitted, it equals to full form sequence with STRING1 equals to NAME and STRING2 equals to empty string.
$subtags:NAME - returns comma-separated subtags of tag NAME if these subtags exists in file (for example, if file contains tags: [A/B/C, A/D] in frontmatter and #A/E somewhere in file body, $subtags:A sequence would return string B/C, D, E
Hi again.
It would be great to be able to display tag values from a note. Is it possible to add, for example, two special sequences:
$iftag:NAME:STRING1:STRING2
- returnsSTRING1
if tag namedNAME
exists in file (as#NAME
or in frontmatter) orSTRING2
otherwise. If:STRING2
part is omitted, it equals to empty string. If whole:STRING1:STRING2
part is omitted, it equals to full form sequence withSTRING1
equals toNAME
andSTRING2
equals to empty string.$subtags:NAME
- returns comma-separated subtags of tagNAME
if these subtags exists in file (for example, if file containstags: [A/B/C, A/D]
in frontmatter and#A/E
somewhere in file body,$subtags:A
sequence would return stringB/C, D, E
Thank you so much for this awesome plugin!