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
536 stars 43 forks source link

Question: how to bind an INPUT with two properties? #437

Closed CarlossShi closed 1 month ago

CarlossShi commented 1 month ago

I want to make two properties updated after I send an input. Or alternatively, bind one property to the other.

My use case is like: input a text, then automatically generate search links of different websites, and update them to the metadata.

It's possible to implement that using meta-bind button with inline JS, but I must press the button to update these properties. I'd like the properties to update automatically as soon as I type inputs, just as the one property case INPUT[text:text]. Thanks in advance for your help!

mProjectsCode commented 1 month ago

you can register two listeners to one property using JS. That way you can do both things that you want to do.