📅 今日待办

  • [ ]
  • [ ]

🎯 本周目标

  • 每天运动(半小时)
  • 每天早睡(11点前)

📚 项目

  • 氨氮吹脱
  • 化学镍水芬顿除磷
  • 铬双氧水

📂 快速链接

娱乐大法

个人管理

🔄 周期性回顾

🔂每日

table without id
file.link as 日记, file.ctime AS "创建时间"
from #日记
sort file.ctime desc
limit 3

7⃣每周

table without id
file.link as 周记, file.ctime AS "创建时间"
from #周记
sort file.ctime desc
limit 3

🌕每月

table without id
file.link as 月记, file.ctime AS "创建时间"
from #月记
sort file.ctime desc
limit 3

♾每年

table without id
file.link as 日记, file.ctime AS "创建时间"
from "年记"
sort file.ctime desc
limit 3

🧭 探索

const term = "📌"
const files = app.vault.getMarkdownFiles()
const arr = files.map(async ( file) => {
const content = await app.vault.cachedRead(file)
const lines = content.split("\n").filter(line => line.contains(term))
return lines })
function generateArray (start, end) { return Array.from(new Array(end + 1).keys()).slice(start) }
Promise.all(arr).then(values => {
//不包含本文件
let noteArr = values.flat().filter(note => !note.includes("const term ="))
//生成一个连续数值的数组
let arrNum = generateArray(0,noteArr.length-1)
let result = [ ]
let ranNum = 3
for (let i = 0; i < ranNum; i++) {
var ran = Math.floor(Math.random() * (arrNum.length - i))
result.push(arrNum[ran])
arrNum[ran] = arrNum[arrNum.length - i - 1]
}
for(let i=0; i< result.length;i++){
let j = result[i]
dv.paragraph(`${noteArr[j]}`)
}
})