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

[feature request] Archive tasks in their correct completed dates instead of use the date that a task was archived #26

Closed FabianoLothor closed 1 year ago

FabianoLothor commented 1 year ago

These are my current settings:

image

Now imagine that I have these tasks:

image

I am using https://github.com/obsidian-tasks-group/obsidian-tasks plugin.

As you can see, the plugin automatically adds the done date to the end of the task line.

It would be great if the Obsisian Task Archiver could identify the done date and archive the tasks to their correct dates.

If I archive the mentioned tasks, I'll get the following behavior:

image

While my expected behavior is:

image

FabianoLothor commented 1 year ago

I understand that it's an odd request, since it's using a feature of a third party plugin.

I would suggest to create an option to enable/disable the feature.

And instead of rely on the third party plugin, the rule would be:

galsom commented 1 year ago

First of all, thank you for the wonderful add-on 👍

I use a combination of Task Archiver and Tasks as well and have the same request.

Some of my projects are longer running and currently have a long list of archived tasks that are not sorted by any means.

Hopefully this can become possible.

ivan-lednev commented 1 year ago

Hello @FabianoLothor, @galsom,

Thank you for your input guys! From 0.20.0 on, there is a placeholder you can use in file names, headings & list items: {{obsidianTasksCompletedDate}}.

So to get the behavior you want, you can use these settings: image