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

feat: add tables to file metadata #2177

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

leangseu
Copy link

@leangseu leangseu commented Nov 30, 2023

What changed?

  • add tables to file metadata
image

Why?

  • I like store some of my data in a table. It is much easier to read/write compare to using frontmatter. Ideally, I would be able to write

dataview

TABLE file.tables WHERE length(file.tables) > 0

dataviewjs

const tables = dv.pages('"path"').file.tables

// show table for the last 5 days
for (let table of tables) {
  dv.table(
    table.headers,
    table.rows
  )
}

@leangseu leangseu force-pushed the add-table-to-file-meta branch from c663f62 to a7050be Compare November 30, 2023 22:52
@blacksmithgu blacksmithgu self-assigned this Dec 30, 2023
@leangseu
Copy link
Author

leangseu commented Mar 4, 2024

@mihaibirsan LMK, if additional work needed. I want to get this merge before start working on adding callout.

@leangseu leangseu force-pushed the add-table-to-file-meta branch from f3160a3 to 28391af Compare March 24, 2024 05:34
@leangseu leangseu requested a review from mihaibirsan March 24, 2024 14:47
@iarebatman
Copy link

Any chance this can get in whenever you do your next release? It's a feature I'd really enjoy having.

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

Successfully merging this pull request may close these issues.

5 participants