Obsidian Dataview

GitHub: https://github.com/blacksmithgu/obsidian-dataview DataviewJS Codeblock References: https://blacksmithgu.github.io/obsidian-dataview/api/code-reference/ DataviewJS Luxon: https://moment.github.io/luxon/api-docs/index.html

Few ideas on how to use dataviews

  • WIP file to list open tasks
  • note to display random notes or snippets using tags
  • note to display random notes or snippets using tags
  • Create a dataview for tags #todo #review to aid processing ideas later on.

Examples

  • Show current filename with : We are on page = this.file.name.
  • Show current week number with: =date(today).weekyear

Task Dataviews

Show tasks linking to this file

TASK
FROM  
WHERE 
  status!="x" AND status!="-"
  AND contains(text, this.file.name)

Weekly recap table

TABLE without id
  link(file.path, dateformat(date(file.name), "ccc")) as D
  ,join(list(
    Summary,
    "__" + Highlight + "__"
  ),"</br>") as "Recap           "
FROM "2AREAS/Journal/daily" AND 
SORT file.name ASC

Views

LIST
FROM "3NOTES/templates/views"