vault backup: 2026-04-16 22:20:53

This commit is contained in:
2026-04-16 22:20:53 +08:00
parent ff5b6930ce
commit 0984d1cbe3
4 changed files with 16 additions and 73 deletions

View File

@@ -13,13 +13,13 @@
"state": { "state": {
"type": "markdown", "type": "markdown",
"state": { "state": {
"file": "Diary/2026-04-16 周四.md", "file": "YueQian/相关网站.md",
"mode": "source", "mode": "source",
"source": false, "source": false,
"backlinks": false "backlinks": false
}, },
"icon": "lucide-file", "icon": "lucide-file",
"title": "2026-04-16 周四" "title": "相关网站"
} }
} }
] ]
@@ -89,13 +89,13 @@
"state": { "state": {
"type": "outline", "type": "outline",
"state": { "state": {
"file": "Diary/2026-04-16 周四.md", "file": "YueQian/相关网站.md",
"followCursor": true, "followCursor": true,
"showSearch": false, "showSearch": false,
"searchQuery": "" "searchQuery": ""
}, },
"icon": "lucide-list", "icon": "lucide-list",
"title": "2026-04-16 周四 的大纲" "title": "相关网站 的大纲"
} }
}, },
{ {
@@ -202,12 +202,12 @@
"state": { "state": {
"type": "git-view", "type": "git-view",
"state": {}, "state": {},
"icon": "lucide-ghost", "icon": "git-pull-request",
"title": "git-view" "title": "源代码管理"
} }
} }
], ],
"currentTab": 2 "currentTab": 3
}, },
{ {
"id": "bf1e7d1a52b4651c", "id": "bf1e7d1a52b4651c",
@@ -258,14 +258,16 @@
}, },
"active": "9c82e7556515fa96", "active": "9c82e7556515fa96",
"lastOpenFiles": [ "lastOpenFiles": [
"Diary/2026/04/2026-04-16 周四.md",
"Diary/2026-04-16 周四.md",
"🏡HOME.md", "🏡HOME.md",
"Diary/2026/02/2026-02-03 周二.md",
"Diary/2026/02/2026-02-01 周日.md",
"Diary/2026/02/2026-02-11 周三.md",
"Template/Diary.md", "Template/Diary.md",
"Diary/2026/04/2026-04-16 周四.md",
"Diary/2026/04/2026-04-17 周五.md",
"Diary/2026-04-16 周四.md",
"YueQian/相关网站.md", "YueQian/相关网站.md",
"未命名.md", "未命名.md",
"Diary/2026/02/2026-02-03 周二.md",
"Diary/2026/04/2026-04-17 周五.md",
"Diary/2026/04", "Diary/2026/04",
"2026-04-16.md", "2026-04-16.md",
"Diary/2026/01/2026-01-31 周六.md", "Diary/2026/01/2026-01-31 周六.md",
@@ -283,8 +285,6 @@
"Diary/2026/01/2026-01-24 周六.md", "Diary/2026/01/2026-01-24 周六.md",
"Diary/2026/01/2026-01-23 周五.md", "Diary/2026/01/2026-01-23 周五.md",
"Diary/2026/01/2026-01-06 周二.md", "Diary/2026/01/2026-01-06 周二.md",
"Diary/2026/01/2026-01-15 周四.md",
"Diary/2026/01/2026-01-07 周三.md",
"Diary/2026/01", "Diary/2026/01",
"Diary/2026/02", "Diary/2026/02",
"Diary/2026", "Diary/2026",

View File

@@ -1,41 +0,0 @@
---
tags:
- 日记
- Diary
日期: 2026/4/16
时间: 2026/4/16 21:12
---
# preface
---
**今天是2026年的第106天、第16周**
**天气:**
**地点:**
# summary
---
**完成了什么?遇到了什么问题?解决方案是什么?**
## 上午
- [ ] 到地打卡
## 中午
- [ ] 吃饭打卡
## 下午
- [ ] 上课打卡
## 晚上
- [ ] 下课打卡
# 随想
---
**任何想法、感悟、反思、碎片记录...**
# afterword
---

View File

@@ -5,24 +5,7 @@ tags:
日期: <%tp.date.now("YYYY/M/D", 0, tp.file.title,"YYYY-MM-DD") %> 日期: <%tp.date.now("YYYY/M/D", 0, tp.file.title,"YYYY-MM-DD") %>
时间: <%tp.date.now("YYYY/M/D HH:mm") %> 时间: <%tp.date.now("YYYY/M/D HH:mm") %>
--- ---
<%*
// 1. 获取当前文件名(即日期,如 2026-04-16
let title = tp.file.title;
// 2. 解析出年份和月份
let year = title.substring(0, 4);
let month = title.substring(5, 7);
// 3. 设定目标文件夹路径 (Diary/年份/月份)
let folderPath = `Diary/${year}/${month}`;
// 4. 如果文件夹不存在,则递归创建
if (!(await app.vault.adapter.exists(folderPath))) {
await app.vault.createFolder(folderPath);
}
// 5. 将当前文件移动到该文件夹下
// 加上 setTimeout 是为了确保官方插件先完成文件创建,脚本再进行移动
setTimeout(() => {
tp.file.move(`${folderPath}/${title}`);
}, 50);
%>
# preface # preface
--- ---
**今天是{{date:YYYY}}年的第{{date:DDD}}天、第{{date:wo}}** **今天是{{date:YYYY}}年的第{{date:DDD}}天、第{{date:wo}}**

View File

@@ -7,4 +7,5 @@ aliases:
- home - home
日期: 2026/4/16 日期: 2026/4/16
--- ---
## 准备将这个页面作为导航页,还没想好怎么做 ## 准备将这个页面作为导航页,还没想好怎么做