farux / obsidian-auto-note-mover

This is a plugin for Obsidian (https://obsidian.md).
MIT License
272 stars 22 forks source link

bug / FR: move note based on boolean key not exectured if boolean not in quotation marks #77

Open marcschn opened 3 months ago

marcschn commented 3 months ago

When using the plugin Metadata Menu to create a boolean key in front matter it outputs the field like this: exampleboolean: false -> does not move the file As far as I can see notes do not get moved automatically when the condition is met if the value is not in quotation marks for a boolean field. If putting true/false in quotation marks it does work as expected and notes get moved: exampleboolean: "false" -> does move the file On all other fields Metadata Menu offers (or the ones I tested) Auto Note Mover works as expected and moves notes when the value is not in quotation marks.

Is this behavior intentional and the problem is with Metadata Menu and how it creates the key vale for booleans? I'd expect Auto Note Mover to move notes regardless if the value is in " " or not.