Description
Currently, Obsidian allows transclusion of files via ![[File]]. This embeds the content of one file into another. However, the embedded file has no way of knowing which “parent file” is calling it.
Problem:
-
Transcluded files are context‑free.
-
There is no variable or function that returns the name of the calling file.
-
As a result, dynamic templates or context‑aware content cannot be created.
Proposal:
-
Introduce a special variable such as
{{parent}}or{{caller}}that, inside the embedded file, returns the name (or path) of the calling file. -
Optionally, make this variable available in plugins like Templater or Dataview.
Benefits:
-
Enables context‑aware notes (e.g., automatically displaying the parent title).
-
Simplifies the creation of reusable templates.
-
Strengthens automation and dynamic content possibilities in Obsidian.