MetaEdit icon indicating copy to clipboard operation
MetaEdit copied to clipboard

don't duplicate properties inside folders

Open joethei opened this issue 4 years ago • 1 comments

When adding a new property which already exists inside the Frontmatter using the new folder manipulation currently the plugin adds a duplicate.

---
tags: [tag]
...
tags:
- tag1
- tag2
---

It would be nice if the plugin adds/overwrite instead of creating a duplicate.

  • adds to the existing array if property is array
  • asks for confirmation before overwriting if property is single.

joethei avatar May 31 '21 07:05 joethei

I've addressed this in 1.6.9 but will add a better handling for it once I have more time.

Currently, it'll skip the file if the YAML property already exists. That way, we at least avoid duplicates.

https://github.com/chhoumann/MetaEdit/releases/tag/1.6.9

Leaving this issue open, so I can revisit the feature suggestions. Definitely something I want to add.

Thank you!

chhoumann avatar May 31 '21 07:05 chhoumann