juechafun/05-原子化笔记本/觉察知识-Templater语法.md
2026-01-22 20:37:04 +08:00

70 lines
1.4 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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.

---
#领域/觉察知识
#复盘/1
## 一句话描述
[___Obsidian 的 Templater 插件生成固定格式笔记___]
---
## 核心规范
>空想不如行动,积累胜于苛求。
>实践 > 沉淀 > 完美主义
实践不是盲目行动,而是带着“小目标、可验证“的方向试错,实践后必须沉淀(比如记录问题、总结规律),否则就是低水平重复。
实践大于沉淀,沉淀大于完美;完美是沉淀的终局方向,沉淀是实践的复盘产物;分域施策,避坑落地,始于行动,终于迭代。
---
## 三省沉淀法
- 达成了[__快捷插入固定结构化内容______]目标
- 遇到了[___新知识语法消化_____]问题
- 下次改进[___逐步消化命令_____]
## 个人理解
[__插入/新建时,解析`<% %>`包裹语法并填充内容______]
## 实践计划
- [x] [__根据需求使用语法______]
- [ ] [________]
- [ ] [________]
## 核心定义
### ✅ 日期
<% tp.date.now("YYYY-MM-DD HH:mm:DD WW") %>` 
效果2026-01-16 13:10:1 5(周几)
### ✅ 光标
<% tp.file.cursor() %>` 
效果:光标
### ✅ 输入框
<% await tp.system.prompt("请输入内容" %>` 
效果await 填充输入内容
### ✅ 异步操作
<%* tp.file.rename( tp.date.now("YYYYMMDD") + " - " + await tp.system.prompt("请输入日记标题:") ) %>
效果:需要搭配 %* 和 await
### ✅ 嵌套子模板
<% tp.file.include("[[子模板名称]]") %>
效果:插入子模板