Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Support searching PDF asset content https://github.com/siyuan-note/siyuan/pull/8985

Daniel1238e03157ad
diff --git a/app/src/search/assets.ts b/app/src/search/assets.ts
index ba0fa56e91..e07703463f 100644
--- a/app/src/search/assets.ts
+++ b/app/src/search/assets.ts
@@ -358,7 +358,7 @@ export const assetMethodMenu = (target: HTMLElement, cb: () => void) => {
};
let filterTypes: string[] = [
- ".txt", ".md", ".markdown", ".docx", ".xlsx", ".pptx", ".json", ".log", ".sql", ".html", ".xml", ".java", ".h", ".c",
+ ".txt", ".md", ".markdown", ".docx", ".xlsx", ".pptx", ".pdf", ".json", ".log", ".sql", ".html", ".xml", ".java", ".h", ".c",
".cpp", ".go", ".rs", ".swift", ".kt", ".py", ".php", ".js", ".css", ".ts", ".sh", ".bat", ".cmd", ".ini", ".yaml",
".rst", ".adoc", ".textile", ".opml", ".org", ".wiki",
]