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

0.3.2: dataviewjs – How to get at this note’s metadata? #185

Closed
Moonbase59 opened this issue May 7, 2021 · 2 comments
Closed

0.3.2: dataviewjs – How to get at this note’s metadata? #185

Moonbase59 opened this issue May 7, 2021 · 2 comments

Comments

@Moonbase59
Copy link

Moonbase59 commented May 7, 2021

Do we have something like a this in dataviewjs code blocks, like used in = this.birthday or = this.file.name? Couldn’t find anything in the docs (yet).

Reason: To build some lists/tables, I need to get at the current note’s metadata like

  • YAML, for comparisons, constructing "BETWEEN" clauses, calculating distances to nearby locations
  • file metadata, like file.name, file.path, etc.

Otherwise, thanks for opening it up to Javascript—a great step forward, I think!

@blacksmithgu
Copy link
Owner

Added dv.current() in next release.

@Moonbase59
Copy link
Author

This works nicely so far.

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

No branches or pull requests

2 participants