seethroughdev / obsidian-recipe-grabber

MIT License
55 stars 8 forks source link

fix: append to file if its open in reading mode #30

Closed Ovyerus closed 5 months ago

Ovyerus commented 5 months ago

If a file was open in reading mode while trying to grab a recipe (e.g. Editor > Default view for new tabs is set to "Reading view"), Recipe Grabber would fail silently and leave the document blank.

This adds a case for this, in which case it simply appends to the file using the Vault API, rather than trying to manipulate the editor itself.

Fixes #29

Ovyerus commented 5 months ago

Ah yep, forgot about that.

seethroughdev commented 5 months ago

This is great, thank you again. I'll try and get this released in the next day or so.