chuangcaleb / obsidian-fountain-editor

Obsidian plugin for formatting Fountain screenplay syntax in the editor.
https://obsidian.md/plugins?id=fountain-editor
MIT License
39 stars 2 forks source link

Prevent parsing if frontmatter is not met #13

Open chuangcaleb opened 1 year ago

chuangcaleb commented 1 year ago

Thanks to @liamcain for suggesting https://discord.com/channels/686053708261228577/1156305653460111460/1161382520814837882

This solution works! Though the changes aren't applied immediately as you change the frontmatter, you still have to update the editor first, for example, by typing something in. I'll tinker with a way to force an update on frontmatter change, and if possible to reduce computations of always checking the frontmatter every cycle.