一个dataview的日记模板(daily note)

备份一下这模板,这模板可以筛选出现在进行的任务和今天新建的笔记。

```dataviewjs
const defaultFormat = 'YYYY-MM-DD';
const format = app['internalPlugins']['plugins']['daily-notes']['instance']['options']['format'] || defaultFormat;
dv.paragraph(`<<[[${moment(dv.current().file.name, format).subtract(1, "d").format(format)}|回顾昨天]]  [[${moment(dv.current().file.name, format).add(1, "d").format(format)}||展望明天]]>>`)
```

# 正在进行的任务
```dataview
list
from ""
where contains(CardState, link("State-Doing"))
```

# Journal

# 今天新建的笔记
```dataview
LIST WHERE (regexreplace(string(uid), "(\d{4})(\d{2})(\d{2})(\d.+)", "$1-$2-$3") = "{{DATE:YYYY-MM-DD}}") 
```

1 个赞