ivan-lednev / obsidian-task-archiver

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

Feature Request: Instead of a toggle to archive all statuses other than [x] allow specification of multiple statuses #55

Closed macbikegeek closed 1 year ago

macbikegeek commented 1 year ago

Instead of a toggle to archive all statuses other than [x] allow specification of multiple statuses to be selected for archiving. Use case: [-] is used by some notations to mean the task was canceled instead of finished. These should be archived because they are done with. Most of the custom statuses are clarifications of some characteristic of the task while it is unfinished and thus should not be archived.

ivan-lednev commented 1 year ago

@macbikegeek, have you tried adding a custom rule for the statuses you want to handle? https://github.com/ivan-lednev/obsidian-task-archiver#rules

macbikegeek commented 1 year ago

Thanks, no, I didn't understand them to do that. I'll try it and report back. Thanks!

macbikegeek commented 1 year ago

I set up a rule for just - status and the preview shows that as what will be processed. I have no file mask. I have this for the target of the move: {{sourceFilePath}} #Archived. When I run the archive tasks command, the task is removed completely from the note. I assume I'm doing something wrong.

ivan-lednev commented 1 year ago

@macbikegeek you specified both a file and a heading. Only the file can be specified here: image

So to archive it to the same file, use just {{sourceFilePath}}.

To configure the heading, check out the "Archive under headings" option. Note that currently you can't configure different headings for different rules. The "Archive under headings" option is going to be applied to all the archived tasks.

ivan-lednev commented 1 year ago

Closing this as stale.