obsidian-metatable icon indicating copy to clipboard operation
obsidian-metatable copied to clipboard

Using shortened links ?

Open Elaws opened this issue 2 years ago • 3 comments

Hi,

Is there a way to use shortened links in YAML frontmatter ?

e.g. :

[LINK](URL)

Elaws avatar Aug 04 '21 20:08 Elaws

Hi @Elaws,

The only options for adding links in YAML are the ones described here https://github.com/arnau/obsidian-metatable#autolinks with the "autolinks" config option enabled.

arnau avatar Aug 05 '21 06:08 arnau

Thanks for your quick reply @arnau,

I indeed read this section and already enabled autolinks : Is there any plan to support such [LINK](URL) style links ?

More often than not, a reduced link is preferable, as a full link would take too much space (in a dataview query for e.g.).

Thanks

Elaws avatar Aug 05 '21 14:08 Elaws

I had no plans to add the ability to parse markdown links. It has the same issue as obsidian links [[link]] where [ and ] are YAML reserved characters symbolising an array. So, in case of implementing this, it would require the yaml field to be defined as a String (same rules laid out for obsidian links).

All that said, once I have a bit of free time I can give it a go, unless you want to try? :)

arnau avatar Aug 06 '21 10:08 arnau

This feature has been available for a while now.

arnau avatar Oct 22 '22 08:10 arnau