chhoumann / MetaEdit

MetaEdit for Obsidian

Home Page:https://bagerbach.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add option to eliminate duplicates when adding value to "multi" properties.

Elyassine94 opened this issue · comments

Hi,
I am new to using this plugin.
I've noticed when appending a value to a yaml property of type multi (array of values) it actually keeps duplicates.
It would be so nice if this is not the case and we can configure it to filter duplicate values out.
It will be especially useful when the plugin is used from a script.

Before appending the value, you could check for arr.includes("value you are appending"). If it is true, don't append, if not, then only append.