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: https://github.com/obsidianmd/obsidian-api/blob/2ccfad1a10c8da9066bf2c502f801b1a237f4ce4/obsidian.d.ts#L2537C40-L2537C40

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

Works perfectly. Thank you!