arnau / obsidian-metatable

An Obsidian plugin to display the frontmatter section as a fully expanded table.
MIT License
150 stars 13 forks source link

Clickable URL And Metadata Bug #2

Closed EhuddR closed 3 years ago

EhuddR commented 3 years ago

Hi! First of all thank you for this plugin. I would like to know if there is a possibility to make the metadata interactive links. For example in my notes I like to have the URL of a news or paper, in this sense, it would be very useful to be able to click directly on the metadata and take you to the link.

EhuddR commented 3 years ago

I have encountered a bug in the plugin. Apparently if I have empty metadata fields the plugin does not work and does not show the other metadata fields.

ZpYN9M4z1f

arnau commented 3 years ago

Hi @EhuddR, thanks for reporting! Creating links out of URLs is a great idea, thanks :)

As per the bug not showing anything if you have empty metadata fields, it's the same issue that happens with the default behaviour. If I remember correctly it's the Yaml parser failing which might make things a bit more challenging.

I'll give it a go and see if there is a workaround!

EhuddR commented 3 years ago

No problem. If the incomplete YAML bug could be fixed, it would be great, since by default in obsidian I can leave those fields incomplete and no error appears. The metadata stills showing up. Of course, the metadata field, by default, is quite limited.

arnau commented 3 years ago

You were right. I was conflating the behaviour of hiding the metadata block when no tags present with null values in the frontmatter.

Version 0.5.2 fixes null values, lets you define a default value for null values and autolinks URLs.

Thanks!

EhuddR commented 3 years ago

Thank you! Now is working flawleslly