ivan-lednev / obsidian-task-archiver

Archive completed tasks in your Obsidian vault (plus other org-mode-like features)
MIT License
116 stars 12 forks source link

SourceFileName does not always point to source file #80

Open plufz opened 9 months ago

plufz commented 9 months ago

Hi!

I have added your very useful plugin as an obsidian linter command and I have all completed tasks archived in my daily note. This workflow works, expect the sourceFileName placeholder does not actually point to the source file that I archive from but to the current file. The linter is usually executed when I switch to another file, and the filename of the new note I navigate to will be used as sourceFileName while everything else (tasks, header names, etc) will be taken from the correct file.

Is this a difficult thing to change?