Allow categorization by directory of properties in property editor

Use case or problem

I’m using directories to separate notes in my vaults in categories. Naturally notes within a category share a property schema. For this usage scenario it would be great if the properties editor of a note contains only properties wich are used in the current directory or above while properties which are used in different directory trees are hidden.

An example: A Directory contains notes about several contracts having properies like “customer numbers”. etc. Another directory contains work items having a property like “due date”. I don’t want to use “Due date” in the contracts “category” neither do I want to use “custmer number” in the work items category.

Proposed solution

Foreach property remember the shortest path where it has been used and show the property only if the currently edited notes path is under the shortest property path.