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

Recognize specific files as expiring notes #2

Open
imeed166 opened this issue Nov 29, 2021 · 4 comments
Open

Recognize specific files as expiring notes #2

imeed166 opened this issue Nov 29, 2021 · 4 comments

Comments

@imeed166
Copy link

@imeed166 imeed166 commented Nov 29, 2021

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.

@joerncodes
Copy link
Owner

@joerncodes joerncodes commented Nov 30, 2021

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?

@imeed166
Copy link
Author

@imeed166 imeed166 commented Nov 30, 2021

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.

@imeed166 imeed166 changed the title specific files automatically with front matter Recognize specific files as expiring notes Nov 30, 2021
@joerncodes
Copy link
Owner

@joerncodes joerncodes commented Dec 9, 2021

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?

@imeed166
Copy link
Author

@imeed166 imeed166 commented Dec 9, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants