obsidian-dataview icon indicating copy to clipboard operation
obsidian-dataview copied to clipboard

feat: add tables to file metadata

Open leangseu opened this issue 2 years ago • 3 comments

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 avatar Nov 30 '23 22:11 leangseu

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

leangseu avatar Mar 04 '24 00:03 leangseu

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

iarebatman avatar May 22 '24 20:05 iarebatman