mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Moving doc search supports multiple keywords separated by spaces https://github.com/siyuan-note/siyuan/issues/12577
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user