A basic question from a newb

Hi - I’ve only just started using Obsidian so please bear with me. I’ve watched a couple of tutorials but still can’t find a solution for what I’d like to do.

What I’d like to do is to create links that automatically repeat the text following the link in another note document.

For example: if I’m writing a list in preparation for a job interview, and I write

[[mention this!]] this company is superb

I’d like the “this company is superb” text to show up in the “mention this!” note.

I hope that makes sense. I’m not hugely familiar with coding or markdown so any explanations that are simple step-by-step would be hugely appreciated.

(I am sure this can be done - I just don’t know how…)

Thank you!

I think the most elegant solution would be to use a template that includes a link together with inline metadata. To get more information about metadata, see Dataview plugin.

Your template:
[[<% tp.file.cursor(1) %>]] (myComment:: <% tp.file.cursor(2) %>)

See Templater plugin.

Then you need to go to your note and manually add a dataview query that queries the content. I’m not sure about the exact query, but you can make queries that filter metadata based on backlinking. After doing that you will see content being added automatically to your note when the above template is used. Use reading view to hide metadata assignments and to only show the value.

You could make the query adding process automatic, but it requires much more complex things.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.