🎨 Replace All is no longer affected by pagination https://github.com/siyuan-note/siyuan/issues/8265

This commit is contained in:
Daniel 2023-06-29 18:06:18 +08:00
parent ecd4a58d03
commit fa8e910bed
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -233,6 +233,7 @@ func FindReplace(keyword, replacement string, ids []string, paths, boxes []strin
}
if 1 > len(ids) {
// `Replace All` is no longer affected by pagination https://github.com/siyuan-note/siyuan/issues/8265
blocks, _, _, _ := FullTextSearchBlock(keyword, boxes, paths, types, method, orderBy, groupBy, 1)
for _, block := range blocks {
ids = append(ids, block.ID)