technohiker / obsidian-multi-properties

Plugin for Obsidian that allows user to add properties to multiple notes at once.
MIT License
93 stars 0 forks source link

Do not overwrite numbers #12

Open jerrygreen opened 7 months ago

jerrygreen commented 7 months ago

I know there's a setting «Overwrite existing text» which is disabled by default by the way – but it only works to text it seems.

If a property is a number, and it's added to a folder where some of the notes already have it – they all get overwritten.

technohiker commented 6 months ago

I'm not actively developing Obsidian plugins at the moment, so I won't be working on this anytime soon.

If someone wants to, you could probably start here, as that function is what determines whether the value should be combined or overwritten based on type. This check is done to ensure that incompatible types like checkmarks and dates aren't combined. I followed Obsidian's Property typing definitions and only made it possible for raw text to be combined.