Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto archive or archive every X hours? #82

Open
zeltak opened this issue Feb 10, 2024 · 8 comments
Open

auto archive or archive every X hours? #82

zeltak opened this issue Feb 10, 2024 · 8 comments
Labels
enhancement New feature or request maybe Might be implemented some day

Comments

@zeltak
Copy link

zeltak commented Feb 10, 2024

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
Copy link

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
Copy link

terafin commented Mar 2, 2024

Yes please :)

@ivan-lednev
Copy link
Owner

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
Copy link

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

@ivan-lednev ivan-lednev added enhancement New feature or request maybe Might be implemented some day labels Mar 17, 2024
@ivan-lednev
Copy link
Owner

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
Copy link

FearTheBadger commented May 17, 2024

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
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request maybe Might be implemented some day
Projects
None yet
Development

No branches or pull requests

6 participants