Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Ability to define a "media file metadata changed" event handler where we could execute a script when media file metadata is changed. #672

Open
polynook opened this issue Sep 19, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@polynook
Copy link

Is your feature request related to a problem? Please describe.
When working with media files, sometimes their metadata needs to be changed. If I change any metadata (e.g., image's filename, caption, or alt text), the changes aren't propagated to the places in the content where this metadata is used.

Describe the solution you'd like
Ability to define a "metadata changed" event handler where we could execute some script when metadata is changed.
This enhancement would also go well together with the enhancement discussed here #666.

Describe alternatives you've considered
We can note down the old metadata value, change it to a new value, then use VS Code built-in search functionality to replace all occurrences of the old value with the new value. However, this is cumbersome and might be error prone. With this proposed enhancement, we would have all the power of Node.js to parse and update the content to reflect the new metadata values based on our specific rules.

@polynook polynook added the enhancement New feature or request label Sep 19, 2023
@estruyf
Copy link
Owner

estruyf commented Sep 21, 2023

Thanks @polynook for the suggestion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants