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

This commit is contained in:
Daniel 2024-09-26 16:05:36 +08:00
parent d58d967522
commit d2be055fc5
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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 {