Listen for changes to the aliases property

What I’m trying to do

I’d like to create a plugin that listens for changes to the aliases property (e.g., adding, deleting, or renaming an alias). If I can’t listen for changes on just the aliases property, I’d settle for listen to changes happening to any property in the front matter. I’d like to avoid listening for all modify events as I’d rater not trigger my plugins logic on every key stroke.

Any help would be appreciated.

You can listen to metadata changes:

The callback will provide the updated metadata, which you can check to see if it includes frontmatter?.aliases

Works perfectly. Thank you!