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

Feature request: self referencing a note the dataview snippet is in? #47

Closed
tonzyl opened this issue Mar 20, 2021 · 3 comments
Closed
Assignees
Labels
feature-request New feature or request.

Comments

@tonzyl
Copy link

tonzyl commented Mar 20, 2021

Maybe this is already possible, in which case it's a documentation request.

It would be useful if a snippet could use / reference attributes of the note a dataview snippet is in.

So that e.g. thisnote.path or thisnote.mtime can be used in equations.
And so that template dataview snippets can be used.

@blacksmithgu
Copy link
Owner

I was actually working on exactly this (accessing self fields through this), though I seem to be unable to actually access the current file in Obsidian from the Markdown post-processor (where I generate the dataview). I've asked around and will put in a request for it in the API so I can properly add this.

@blacksmithgu blacksmithgu added the feature-request New feature or request. label Mar 20, 2021
@blacksmithgu blacksmithgu self-assigned this Mar 20, 2021
@blacksmithgu
Copy link
Owner

Support for this has been added in recent Obsidian versions, so will be added to an upcoming release.

@blacksmithgu
Copy link
Owner

Released as part of 0.2.6.

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

No branches or pull requests

2 participants