list query

list from "__zettel"
where contains(file.etags, "cpp")
sort file.ctime
limit 5

下面这个例子可以看到文件的所有metadata,

table this
where file=this.file

日期操作

table file.cday as "创建日期",file.tags from #cpp
where file.cday >= date("2023-12-04")

inline query

this is a inline query dv= this.file.name, here is another dv=[[备忘]].file.tags

table dateformat(file.mday, "yy/MM/dd") as "Update", file.tags as "Tags"
from !"work" and !"__obex" and !"inbox" and !"life"
where containsword(file.name, "excalidraw")

References

  1. Dataview函数集合
  2. Dataview 基本语法学习指南