obsidian-expiring-notes icon indicating copy to clipboard operation
obsidian-expiring-notes copied to clipboard

Recognize specific files as expiring notes

Open imed-ghomari opened this issue 4 years ago • 4 comments

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.

imed-ghomari avatar Nov 29 '21 22:11 imed-ghomari

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?

joerncodes avatar Nov 30 '21 11:11 joerncodes

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.

imed-ghomari avatar Nov 30 '21 13:11 imed-ghomari

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?

joerncodes avatar Dec 09 '21 08:12 joerncodes

No it doesn't have this option, but thank you for the suggestion, I'll ask the maintainer if this can be implemented.

imed-ghomari avatar Dec 09 '21 10:12 imed-ghomari