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 Ding262e8b30225c
diff --git a/kernel/model/file.go b/kernel/model/file.goindex 8bacdb3a74..6ac1fd0c42 100644--- a/kernel/model/file.go+++ b/kernel/model/file.go@@ -1032,7 +1032,7 @@ func MoveDocs(fromPaths []string, toPath string) (err error) {util.PushEndlessProgress(Conf.Language(116))WaitForWritingFiles()- fromPaths = util.FilterFromPaths(fromPaths, toPath)+ fromPaths = util.FilterMoveDocFromPaths(fromPaths, toPath)pathsBoxes := getBoxesByPaths(fromPaths)toID := strings.TrimSuffix(path.Base(toPath), ".sy")diff --git a/kernel/util/path.go b/kernel/util/path.goindex c05f1f5177..54dad66771 100644--- a/kernel/util/path.go+++ b/kernel/util/path.go@@ -175,7 +175,7 @@ func NormalizeEndpoint(endpoint string) string {return endpoint}-func FilterFromPaths(fromPaths []string, toPath string) (retFromPaths []string) {+func FilterMoveDocFromPaths(fromPaths []string, toPath string) (retFromPaths []string) {fromPaths = append(fromPaths, toPath)retFromPaths = FilterSelfChildDocs(fromPaths)return