KevinBatdorf / obsidian-raycast

Raycast extension with commands for the note taking app Obsidian.
MIT License
106 stars 19 forks source link

Fix no default app crash #77

Closed KevinBatdorf closed 9 months ago

KevinBatdorf commented 9 months ago

edit: This PR also adds an ignore to the cache if it's empty (i.e. [])

This PR fixes 2 bugs.

One where if the file has no default app (or its not found), it would crash the extension

Seen here: https://github.com/raycast/extensions/issues/9242 and https://github.com/raycast/extensions/issues/9244

Another reported directly to me where if you removed the pref option for the config path, it wouldn't find anything. This will now default to .obsidian in that case.