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

Add example of accessing `memory` and `globalMemory` for `View Fields` page #335

Closed RayBB closed 1 week ago

RayBB commented 4 months ago

Is your Feature Request Related to a Problem?

No response

Describe the Feature you'd Like

It took me a while to piece together the docs here https://www.moritzjung.dev/obsidian-meta-bind-plugin-docs/guides/viewfields/#examples and here https://www.moritzjung.dev/obsidian-meta-bind-plugin-docs/guides/bindtargets/

To figure out that accessing a globalMemory bind type is as simple as:

`INPUT[text:globalMemory^inputText]`

\`\`\`meta-bind-js-view
{globalMemory^inputText} as title
\`\`\`

It would be nice to add to the docs on the View Fields page.

Additional Context

No response

LynetteCullens commented 1 month ago

How do we access it in js engine?

mProjectsCode commented 1 month ago

via getMetadata from the meta bind api