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: 文档树支持 `Ctrl+Click` 和 `Shift+↑/↓` 进行多选 https://github.com/siyuan-note/siyuan/issues/1359
Liang Dinge6fa3fc6e382
diff --git a/kernel/model/box.go b/kernel/model/box.goindex f19a89f256..6e5e0854a7 100644--- a/kernel/model/box.go+++ b/kernel/model/box.go@@ -547,6 +547,7 @@ func TryAccessFileByBlockID(id string) (ok bool) {}func getBoxesByPaths(paths []string) (ret map[string]*Box) {+ ret = map[string]*Box{}for _, p := range paths {id := strings.TrimSuffix(path.Base(p), ".sy")bt := treenode.GetBlockTree(id)diff --git a/kernel/model/file.go b/kernel/model/file.goindex 6f5b07cc55..ca7554fab8 100644--- a/kernel/model/file.go+++ b/kernel/model/file.go@@ -1075,8 +1075,8 @@ func filterSelfChildDocs(paths []string) (ret []string) {for _, fromPath := range paths {dir := strings.TrimSuffix(fromPath, ".sy")existParent := false- for _, d := range dirs {- if strings.HasPrefix(d, fromPath) {+ for d, _ := range dirs {+ if strings.HasPrefix(fromPath, d) {existParent = truebreak}