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

auto archive or archive every X hours? #82

Open zeltak opened 8 months ago

zeltak commented 8 months ago

Hi and thank you for all your amazing work!

I may have missed it but can one define to auto archive once the task is marked is done or maybe auto archive every X hours?

thx so much!!

Z

ChayseSmith commented 8 months ago

I second this request, I was expecting the archive function to run the instant I complete a task. That would be ideal in my situation. The plugin you've created is fantastic however and still saves me a lot of time.

terafin commented 8 months ago

Yes please :)

ivan-lednev commented 7 months ago

Hello,

There is already a command called Toggle task done and archive it. Once you assign it to a shortcut (like ctrl + Enter) this gets you 80% there.

ChayseSmith commented 7 months ago

Yes, but it doesn't work against a task being completed with from a ```tasks query on a different file

ivan-lednev commented 7 months ago

Yes, but it doesn't work against a task being completed with from a ```tasks query on a different file

This would likely require a change in the obsidian-tasks plugin. It might take significant effort, so marking this as maybe/some day

FearTheBadger commented 5 months ago

I found an acceptable way around this.

There is a plugin based on chron call obsidian-chron. You can set it via chron timing to run a command. I have mine running every 15 minutes (*/15 * * * *) running the Archive tasks in this file command.

https://github.com/cdloh/obsidian-cron

Raijin56 commented 5 months ago

I found an acceptable way around this.

There is a plugin based on chron call obsidian-chron. You can set it via chron timing to run a command. I have mine running every 15 minutes (*/15 * * * *) running the Archive tasks in this file command.

https://github.com/cdloh/obsidian-cron

Hi FearTheBadger,

Do you or someone knows how to make obsidian-cron to run the command only on a specific file? I'd like to run it in my Tasks file but not in all the files that contain tasks. I'm afraid the lack of a field in obsidian-cron to fill with the file in which to run the command would do that...

FearTheBadger commented 5 months ago

There is supposedly an API endpoint on obsidian-chron. But I can't get it to register anything useful, that would solve your problem.