#主题研究 #app
4.1.1 PPT快捷键
- cmd+enter: 从当前界面播放PPT
- opt+enter: 演讲者模式
- shift+cmd+enter: 从头播放
4.1.2 生成PPT的大模型工具
可以使用一款叫做 Gamma 的 AI 工具,把刚刚得到的大纲生成为 PPT
互动记录
table without id 编码,需求 as 卡片 ,"[["+file.name+"|详情]]" as 详情
from [[PPT]] and ![[个人词条]] and ![[五彩]] and -#moc and -#dataview and "9文献笔记"
where number(编码)<0
sort number(编码)
已编码卡片
table without id 编码 ,"[["+file.name+"|"+需求+"]]" as 卡片
from [[PPT]] and ![[个人词条]] and ![[五彩]] and -#moc and -#dataview and "9文献笔记/fn"
where number(编码)>0
sort number(编码)
卡片汇总
//输入目标小标题(含#),例如:#### 项目进度条
const header = '### 正文'
// 按【路径或文件夹、文件名、标签】筛选并按修改时间降序排列
const pages = dv.pages('[[PPT]]').filter(p => p.file.name.includes("") && p.file.path.includes("fn")).filter(p => p.file.name.includes("") || p.file.name.includes("")).sort(p=>p.编码,"asc");
// This regex will return text from the Summary header, until it reaches
// the next header, a horizontal line, or the end of the file
const regex = new RegExp(`\n${header}\r?\n(.*?)(\n#+ |\n---|$)`, 's')
for (const page of pages) {
const file = app.vault.getAbstractFileByPath(page.file.path)
// Read the file contents
const contents = await app.vault.read(file)
// Extract the summary via regex
const summary = contents.match(regex)
//显示全部包括空结果if (summary) {
//不显示空结果if (summary && summary[1].trim()) {
if (summary && summary[1].trim()) {
// Output the header and summary
dv.header(3, '[['+ file.basename + '|'+page.编码+' '+page.需求+']]')
//dv.header(3, page.编码+' '+page.需求)
//或者dv.header(2, '[[' + file.basename + ']]')
dv.paragraph(summary[1].trim())
}
}