微信读书清单
微信读书笔记清单
const groups = dv.pages('#微信读书笔记 and -"Extras"').groupBy(p => {
// 目前有小bug,自动手动上传的书,所做的笔记,会没有category字段,需要手动处理。
if (p.category != null){
p.category.split('-')[0]
}
})
for (let group of groups) {
dv.header(3, group.key);
dv.table(["Name","author","publisher", "NoteCount"],
group.rows
.sort(k => k.noteCount, 'desc')
.map(k => [k.file.link,k.author,k.publisher, k.noteCount]))
}
画廊视图
table without id ("![](" + cover + ")") as Cover,file.link as Name, author as Author,publisher,noteCount as NoteCount
from #微信读书笔记 and -"Extras"
sort NoteCount desc
反向链接:
∑ 本库Dataview汇总
x:: [[» 本库常用的dataview工作流]]
[[obsidian projects]]插件可以管理文件夹内的[[frontmatter]],非常优雅,一定程度上替代自己写的这些针对某些文件夹的dataview。