obsidian-meta-bind-plugin icon indicating copy to clipboard operation
obsidian-meta-bind-plugin copied to clipboard

FR: Support for dataview fields

Open isle9 opened this issue 2 years ago • 15 comments

Are there any plans to support dataview fields?

isle9 avatar Jun 22 '22 06:06 isle9

I personally haven't looked into data view fields, since I don't use them, but I can put it on the road map.

mProjectsCode avatar Jun 22 '22 06:06 mProjectsCode

Any updates on this? Have you checked the dataview API?

isle9 avatar Jul 02 '22 13:07 isle9

not yet, there are currently other things I am working on (templates and the docs)

mProjectsCode avatar Jul 02 '22 13:07 mProjectsCode

I would love to have this feature as well. (and congrats on this plugin; it's something I've always wanted=)

Rhydderch avatar Oct 16 '22 08:10 Rhydderch

I am currently working on a library for plugin devs, that provides utility for editing metadata. Dataview fields are on the roadmap for that. Once that library is finished I will update this plugin to use it.

mProjectsCode avatar Oct 16 '22 09:10 mProjectsCode

Awesome. Thank you.

On Sun, 16 Oct 2022, 11:56 Moritz Jung, @.***> wrote:

I am currently working on a library for plugin devs, that provides utility for editing metadata. Dataview fields are on the roadmap for that. Once that library is finished I will update this plugin to use it.

— Reply to this email directly, view it on GitHub https://github.com/mProjectsCode/obsidian-meta-bind-plugin/issues/9#issuecomment-1279935612, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYMVPKC4P2QX2W4PTZC3U3WDPGMHANCNFSM5ZO6Q2SA . You are receiving this because you commented.Message ID: @.***>

Rhydderch avatar Oct 16 '22 11:10 Rhydderch

Is there any update on that? (Also can't believe I'm only just discovering this plugin!).

mayurankv avatar Nov 28 '22 20:11 mayurankv

To keep it simple: The plugin will only support dataview inline fields, once dataview makes it's inline field parser and API available for other plugins to use. As, for a multitude of reasons, I don't want to write my own dataview inline field parser.

mProjectsCode avatar Nov 28 '22 20:11 mProjectsCode

Of course! Fingers crossed on this from dv's side then.

mayurankv avatar Nov 28 '22 22:11 mayurankv

hi, the Dataview inline fields API is indirectly available through a plugin called MetaEdit. It's one of the "Friends of Dataview" plugins, afaik it used by all other plugins that require access to Dataview fields.

alexey-zaharchenko avatar Jul 10 '23 12:07 alexey-zaharchenko

I don't want to rely on a third plugin. I have my hopes up that datacore exposes an API for inline fields.

mProjectsCode avatar Nov 09 '23 13:11 mProjectsCode

Hello it is May 2024, the dataview support will be amazing! Is this implemented? https://github.com/mProjectsCode/obsidian-meta-bind-plugin/issues/107#issuecomment-1731902290

dxcore35 avatar May 05 '24 14:05 dxcore35

I thought this was related to this issue. It seems that callouts, inline DQL and Metabind code are incompatible when adjacent to each other. Metabind doesn't detect the frontmatter field being referred to. i.e:

> [!note]
>`INPUT[number:field0]`
> [field1:: value] units

Results in the input field being empty.

AveaCallister avatar May 06 '24 00:05 AveaCallister

I thought this was related to this issue. It seems that callouts, inline DQL and Metabind code are incompatible when adjacent to each other. Metabind doesn't detect the frontmatter field being referred to. i.e:

> [!note]
>`INPUT[number:field0]`
> [field1:: value] units

Results in the input field being empty.

Can you make a bug report with a reproducible example?

mProjectsCode avatar May 06 '24 09:05 mProjectsCode

Hello it is May 2024, the dataview support will be amazing! Is this implemented? #107 (comment)

Dataview still does not provide an API for inline fields afaik.

The issue you linked to is implemented. See the API reference in the docs, at the very bottom of the sidebar.

mProjectsCode avatar May 06 '24 09:05 mProjectsCode