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
473 stars 38 forks source link

update js view bindings to use format of bind targets #318

Closed Shyclops closed 4 months ago

Shyclops commented 4 months ago

Is your Feature Request Related to a Problem?

I can't run javascript code that targets another notes metadata in a meta-bind-js-view

Describe the Feature you'd Like

I would like the data-view-js-view binding section of the plugin to accept and use the binding format specified on the binding targets page

An example would be

{NOTE_A#PROPERTY_1} as prop1
---

return prop1

Additional Context

No response

mProjectsCode commented 4 months ago

It already works that way.

Shyclops commented 4 months ago

aaah i see my trouble comes from the fact that i'm referencing a variable for my page

so an example of what i'm doing would be

PageB

NOTE_LINK = [[PageA]]

{NOTE_LINK} as note
{note#PROPERTY_!} as prop1
---

return prop1
mProjectsCode commented 4 months ago

see the advanced use case section in the docs

Shyclops commented 4 months ago

Neither of the advanced samples returns the value stored which I need as I have some logic that I would like too check against the valu dynamically.

-------- Original Message -------- On 5/15/24 9:48 AM, Moritz Jung wrote:

see the advanced use case section in the docs —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID:

DuckDuckGo removed one tracker. More

Deactivate

see the advanced use case section in the docs

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>