Use file name as variable for another file

Hi,

I am trying to use the filename of File A as a variable definition to be used for creating File B.

What I’m trying to do:

I have a project file called project A.md and via a QuickAdd Macro from inside the project file I am creating several task files with the following name convention:

task#1 - project A - 221226.md and
task#2 - project A - 221226.md

etc.

Things I have tried

  • I have defined a QuickAdd Macro in which I added the Obsidian command “Copy File Path” and tried to assign that via a macro to a variable - did not work
  • I have defined a name convention for the task file including a {{LINKCURRENT}} template from QuickAdd - did not work

Any help would be highly appreciated - thank you!

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