An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: 导入 Markdown 和 `.sy.zip` 时增量建立索引 https://github.com/siyuan-note/siyuan/issues/7123
Liang Dingad79dd64b7e2
diff --git a/kernel/model/import.go b/kernel/model/import.goindex 3dd5dc16d2..8df17c22ca 100644--- a/kernel/model/import.go+++ b/kernel/model/import.go@@ -610,22 +610,14 @@ func ImportFromLocalPath(boxID, localPath string, toPath string) (err error) {})reassignIDUpdated(tree)- if err = filesys.WriteTree(tree); nil != err {- return io.EOF- }+ indexWriteJSONQueue(tree)+i++if 0 == i%4 {util.PushEndlessProgress(fmt.Sprintf(Conf.Language(66), util.ShortPathForBootingDisplay(tree.Path)))}return nil})-- if nil != err {- return err- }-- IncSync()- FullReindex()} else { // 导入单个文件fileName := filepath.Base(localPath)if !strings.HasSuffix(fileName, ".md") && !strings.HasSuffix(fileName, ".markdown") {@@ -703,13 +695,11 @@ func ImportFromLocalPath(boxID, localPath string, toPath string) (err error) {})reassignIDUpdated(tree)- if err = indexWriteJSONQueue(tree); nil != err {- return- }- IncSync()+ indexWriteJSONQueue(tree)}IncSync()+ ReloadUI()runtime.GC()return}