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: The interface will no longer be refreshed after find-replace https://github.com/siyuan-note/siyuan/issues/11844
Daniel4e0aa60ebffc
diff --git a/kernel/model/search.go b/kernel/model/search.goindex ed06876918..acd44ff8d0 100644--- a/kernel/model/search.go+++ b/kernel/model/search.go@@ -519,6 +519,8 @@ func FindReplace(keyword, replacement string, replaceTypes map[string]bool, ids}indexHistoryDir(filepath.Base(historyDir), util.NewLute())+ luteEngine := util.NewLute()+ var reloadTreeIDs []stringfor i, id := range ids {bt := treenode.GetBlockTree(id)if nil == bt {@@ -535,6 +537,8 @@ func FindReplace(keyword, replacement string, replaceTypes map[string]bool, idscontinue}+ reloadTreeIDs = append(reloadTreeIDs, tree.ID)+if ast.NodeDocument == node.Type {if !replaceTypes["docTitle"] {continue@@ -555,7 +559,6 @@ func FindReplace(keyword, replacement string, replaceTypes map[string]bool, ids}}} else {- luteEngine := util.NewLute()var unlinks []*ast.Nodeast.Walk(node, func(n *ast.Node, entering bool) ast.WalkStatus {if !entering {@@ -789,9 +792,13 @@ func FindReplace(keyword, replacement string, replaceTypes map[string]bool, ids}WaitForWritingFiles()- if 0 < len(ids) {- task.AppendAsyncTaskWithDelay(task.ReloadUI, 500*time.Millisecond, util.ReloadUI)++ reloadTreeIDs = gulu.Str.RemoveDuplicatedElem(reloadTreeIDs)+ for _, id := range reloadTreeIDs {+ util.PushProtyleReload(id)}++ util.PushClearProgress()return}