mProjectsCode / obsidian-meta-bind-plugin

A plugin for Obsidian to make your notes interactive with inline input fields, metadata displays, and buttons.
https://www.moritzjung.dev/obsidian-meta-bind-plugin-docs/
GNU General Public License v3.0
534 stars 42 forks source link

Update terminology used in metadata manager #456

Closed mProjectsCode closed 1 week ago

mProjectsCode commented 2 weeks ago

Some terminology should be updated, e.g. pendingInternalChange to dirty, cyclesSinceInternalChange could become externalWriteLock counting down, with 0 being not locked.

mProjectsCode commented 2 weeks ago

inactive and subscriptions.length === 0 are identical, so inactive can go.

mProjectsCode commented 2 weeks ago

In this change, I should also move some logic from the constructor of AbstractInputField to the onMount function

mProjectsCode commented 2 weeks ago

Maybe also make BindTarget a class and move the logic for subscribing to the metadata manager there. Or put that into the MetadataSubscription. Then make an interface for this and expose it via the API, so that people can use the API to create their own input fields independent of the metadata manager.