Skip to content

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

:art: Moving doc search supports multiple keywords separated by spaces https://github.com/siyuan-note/siyuan/issues/12577

Danield2be055fc591
diff --git a/kernel/model/file.go b/kernel/model/file.go
index 2d70b4ee3b..74636e838c 100644
--- a/kernel/model/file.go
+++ b/kernel/model/file.go
@@ -184,7 +184,7 @@ func SearchDocsByKeyword(keyword string, flashcard bool) (ret []map[string]strin
var rootBlocks []*sql.Block
if 0 < len(keywords) {
for _, box := range boxes {
- if util.ContainsSubStr(box.Name, keywords) {
+ if gulu.Str.Contains(box.Name, keywords) {
if flashcard {
newFlashcardCount, dueFlashcardCount, flashcardCount := countBoxFlashcard(box.ID, deck, deckBlockIDs)
if 0 < flashcardCount {