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

Archive to separate file within the same folder #34

Closed tonyxiao closed 1 year ago

tonyxiao commented 1 year ago

When I archive tasks to separate files, obsidian archiver seems to create the said separate file in my vault root, regardless of whether or not I already have a file existing right next to the file i'm archiving properly named e.g. (subfolder/my tasks (archive) next to subfolder/my tasks. I'd like to archiver to look for a file with the same name (anywhere in the vault ideally, if not at least in the current directory) before creating new file.

ivan-lednev commented 1 year ago

Hello @tonyxiao! I added a new placeholder: {{sourceFilePath}}. This is how you can use it to achieve the behavior you described: image

tonyxiao commented 1 year ago

yay! Can I pull it from the latest release now?

tonyxiao commented 1 year ago

CleanShot 2023-03-03 at 13 49 00 Just got on version 0.15 and for some reason I can't toggle the button at all anymore.

ivan-lednev commented 1 year ago

Hi @tonyxiao, check out 0.15.1, I fixed the issue there.