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

Dataview Field #964

Open
agitoxin opened this issue Oct 28, 2024 · 0 comments
Open

Dataview Field #964

agitoxin opened this issue Oct 28, 2024 · 0 comments
Labels
kind/feature New feature request needs-triage Issue needs a triage/* label

Comments

@agitoxin
Copy link

What would you like to be added?

To have Dataview fields in editable (folder as data source) project.

Why is this needed?

I have a project which fields are editable.
I would also like to have some calculated and read-only fields with Dataview queries.
(Like formula in Notion.so)

For instance:

File's frontmatter:
---
A: 111
B: 222
---

I wish to display following fields in projects' table view:
A: 111 (editable)
B: 222 (editable)
SUM: 333 (read-only, by Dataview query $= dv.current().A + dv.current().B)

I have tried to put the query in frontmatter and it works.
However, I found it is not sensible to mess up frontmatter with scripts.
Regarding the leave-no-trace philosophy, the query is not page's property, instead, it is only for its View and need to be stored somewhere else.

@agitoxin agitoxin added kind/feature New feature request needs-triage Issue needs a triage/* label labels Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature request needs-triage Issue needs a triage/* label
Projects
None yet
Development

No branches or pull requests

1 participant