obsidian_supercharged_links icon indicating copy to clipboard operation
obsidian_supercharged_links copied to clipboard

Frontmatter tags sometimes do not properly supercharge

Open randomsnowflake opened this issue 2 years ago • 4 comments

To reproduce

  • Create a note with the tags [foo, bar]
  • Create a tag selector for foo

Expected behaviour

  • the note with the tags [foo, bar] gets supercharged

Actual behaviour

  • it doesn't get supercharged
  • only notes with the single tag foowill get supercharged

Is this a bug or a feature? Since the UI says "Note has tag #foo" I suspect the first. If it behaves as expected I suggest to change the description in the UI.

randomsnowflake avatar Nov 01 '22 17:11 randomsnowflake

This has never been an issue for me. What does the note look like? Where do you put the tags?

HEmile avatar Nov 02 '22 05:11 HEmile

You are right, it does not appear to be an issue with multiple tags.

The problem is that sometimes notes with one tag are not supercharged correctly. I apply the tags via frontmatter.

Please see the attached screenshots (retracted for privacy) for details. I have not been able to setup a minimal setup that would trigger the issue.

It also only seems to affect the tag "workout_log" - my other tagged notes ("recipes", "book") have styled applied to them correctly.

not supercharged settings supercharged

randomsnowflake avatar Nov 02 '22 06:11 randomsnowflake

Okay this is probably an issue with parsing frontmatter tags. I don't use these so they're not well tested. I'll look into this in the next round!

HEmile avatar Nov 02 '22 07:11 HEmile

Yep, putting the tag (with a hashtag) in the content gets rid of the problem. So it's definitly related to frontmatter.

randomsnowflake avatar Nov 02 '22 07:11 randomsnowflake