nailahmed630 downloadsWatches for changes in metadata and performs user-specified actions based on these changes.
MetadataWatcher is a plugin for Obsidian that monitors changes in metadata fields of your notes and performs specific actions based on these changes. It allows you to configure header replacements and command executions triggered by metadata updates.
<vault>/.obsidian/plugins/metadata-watcher.The plugin can be configured through the settings tab in Obsidian. There are two main configuration sections: Header Groups and Command Groups.
Header Groups allow you to replace headers in your notes based on metadata values.
If you want to replace a header with the value of exampleField, configure the group as follows:
exampleField## Example HeaderCommand Groups allow you to execute commands when metadata fields change.
If you want to execute a command when exampleField changes, configure the group as follows:
exampleFieldOnce configured, the plugin will monitor changes to the specified metadata fields in your notes. When changes are detected, it will either replace headers or execute commands based on your settings.
To build and modify this plugin, you'll need to have Node.js installed. Follow these steps:
npm install to install dependencies.npm run build to build the plugin.If you encounter any issues or have suggestions for improvements, please open an issue on the GitHub repository. Contributions are welcome!
This plugin is licensed under the MIT License.
This README provides an overview of the MetadataWatcher plugin, how to install it, configure it, and how to contribute to its development. For more detailed information, refer to the source code and inline documentation within the plugin.