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

Add delay for task creation after file create to allow plugins like templater to populate the new file. #36

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dranidis
Copy link
Contributor

This change is useful for those who use Templater plugin.

I use templater for my daily notes. Currently, when a task is added in the tasks timeline and the file does not exist, the generated file does not contain the template.

I made some changes, so that:

  • initially an empty file is generated,
  • a timeout is set so that the Templater plugin populates the file , and then
  • the new task is added to the file

The timeout is currently a constant in the script (1 second ; 500 ms were not enough in my machine for the Templater to kick in), but it could be defined as a parameter.

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

Successfully merging this pull request may close these issues.

1 participant