Dyldog / luhman-obsidian-plugin

GNU General Public License v3.0
61 stars 18 forks source link

Fix ignore filter in getZettels #15

Closed vlthr closed 2 years ago

vlthr commented 2 years ago

Possibly a fix for the issues in #11 (after additionally switching to fuzzy matcher). The ignore pattern was using single-character matches instead of whole-word matches.

To be safe I also made the filter conditional on the .path property being present — I’m not sure whether this is needed, but since it’s not part of the TFile API spec I’m guessing it might not exist on some harder-to-debug platforms.