Skip to content

When creating daily note, wait for it to be created before reading headings (fixes #555)#556

Open
ngokevin wants to merge 6 commits into
obsidian-community:mainfrom
ngokevin:patch-1
Open

When creating daily note, wait for it to be created before reading headings (fixes #555)#556
ngokevin wants to merge 6 commits into
obsidian-community:mainfrom
ngokevin:patch-1

Conversation

@ngokevin
Copy link
Copy Markdown

@ngokevin ngokevin commented Apr 14, 2024

This fixes the issue of the plugin not finding Events heading immediately after creating Daily Note.

@ngokevin
Copy link
Copy Markdown
Author

I added a timeout because the wait for read wasn't enough

@ngokevin
Copy link
Copy Markdown
Author

I changed it to remove the heading check. For me, it was always returning undefined for heading metadata.

@ngokevin
Copy link
Copy Markdown
Author

Okay, I reverted back to relying on a timeout.

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