Recognize specific files as expiring notes
I'm trying to automate the process of deleting completed tasks. So I'm waiting for task archiver plugin to release the feature of archiving the tasks to another file periodically.
I was wondering, how I could use your plugin to automatically assign these newly created archive files to have a front matter with the date of today.
If the plugin as it is can't help with this workflow, then can you add an option in the setting to add a date for created files with certain names ?
Thank you.
Hi there! I'm having some difficulties understanding exactly what your use case is. Let me see if I get this.
You would like to use Task Archiver to archive your completed tasks into a separate archive file. Then you want Expiring Notes to automatically write today's date in the frontmatter of those new files?
While Expiring Notes uses frontmatter (the key is expires by default), that date is used to set a date in the future at which the note will be deleted or archived. So that would be a different use case.
Can you expand a little on what exactly you plan to do with the archived task files?
You would like to use Task Archiver to archive your completed tasks into a separate archive file. Then you want Expiring Notes to automatically write today's date in the frontmatter of those new files?
Exactly.
Can you expand a little on what exactly you plan to do with the archived task files?
I want this plugin to recognize them as expiring notes and delete them.
Hm, so far, there are no plans for Expiring Notes to recognise files that don't have the expires frontmatter. I'd be happy to add it in the future if it's something that's useful for a lot of people, but in the meantime, maybe you could do it the other way around? Does Task Archiver have an option to put frontmatter in the files or use a template?
No it doesn't have this option, but thank you for the suggestion, I'll ask the maintainer if this can be implemented.