marcusolsson / obsidian-projects

Plain text project planning in Obsidian
Apache License 2.0
1.42k stars 56 forks source link

Option to clear a value without deleting the property in file #907

Open Glint-Eye opened 3 months ago

Glint-Eye commented 3 months ago

EDIT: After Some more testing, turns out that a property field in a file is only deleted if you clear a value inside projects by Right Click -> "Clear Value"

What would you like to be added?

Right now. If a value for a Key is cleared from within Projects, Projects will delete the whole Property entry in the respective File. (At least this happens for to me for date-type entries. If you re-enter a value, the property entry is back, but at the bottom of the property list. Thereby the properties in the respective file is being juggled around and no longer respresents the sort order of a template, for example.

An Option to prevent property removal on value clearance could be added. The whole Property should only be cleared if the respective column is being deleted in Projects.

Why is this needed?

The deletion of the whole "Key: Value" pair on value clearance also leads to data loss if you use the files outside of Obsidian / Projects.