obsidian-task-archiver icon indicating copy to clipboard operation
obsidian-task-archiver copied to clipboard

auto archive or archive every X hours?

Open zeltak opened this issue 1 year ago • 8 comments

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

zeltak avatar Feb 10 '24 14:02 zeltak

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.

ChayseSmith avatar Feb 29 '24 13:02 ChayseSmith

Yes please :)

terafin avatar Mar 02 '24 18:03 terafin

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.

ivan-lednev avatar Mar 09 '24 15:03 ivan-lednev

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

ChayseSmith avatar Mar 09 '24 16:03 ChayseSmith

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

ivan-lednev avatar Mar 17 '24 09:03 ivan-lednev

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

FearTheBadger avatar May 17 '24 17:05 FearTheBadger

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...

Raijin56 avatar May 17 '24 18:05 Raijin56

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

FearTheBadger avatar May 20 '24 16:05 FearTheBadger