juechafun/03-资源/模板文件/模板-豆包-DataView语法.md

46 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#临时/备忘
{{date}}-备忘-主题名-文件内容
## 模板变更
- 20260105(`v1.0.1`):增加分割线区分提示内容和实际内容
- 20260105(`v1.0.0`):模板创建
注意:请忽略以上内容
---
## 输入内容
查询:[__指定目录`00-文件夹/子文件夹1`下以文件名`需求`开头的文件______]
展示:[__文件名、指定tag、最后修改时间______]
## 操作需求
需要进行如下操作
- [x] dataview语法实现
- [x] 表格查询
- [ ] 列表查询
## 输出格式
- [x] markdown
## 注意
1. 请判断勾选框是否处于被勾选状态例如json勾选框处于未被勾选状态则无需输出json格式
2. 我希望复制后能够直接插入markdown所以你要注意格式排版
---
注意:请忽略以下内容
## 输出结果
```dataview
TABLE without ID
link(file.path, file.name) as "文件名", filter(file.tags, (t)=>startswith(t,"#需求/")) as "状态", file.mtime AS "最后修改时间"
FROM "01-项目/2025-MaixCam竞赛版"
WHERE startswith(file.name, "需求") and any(file.tags, (t)=>startswith(t, "#需求/"))
SORT file.mtime DESC
```