marcusolsson/obsidian-projects

Dataview Field

Opened this issue · 0 comments

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.