🎨 Need to be reminded that replacement operations are not supported after grouping by doc https://github.com/siyuan-note/siyuan/issues/10161

This commit is contained in:
Daniel 2024-01-13 09:21:55 +08:00
parent 43d0bb1bfe
commit 29322a292b
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
7 changed files with 17 additions and 6 deletions

View file

@ -283,6 +283,12 @@ func FindReplace(keyword, replacement string, replaceTypes map[string]bool, ids
return
}
if 0 != groupBy {
// 按文档分组后不支持替换 Need to be reminded that replacement operations are not supported after grouping by doc https://github.com/siyuan-note/siyuan/issues/10161
err = errors.New(Conf.Language(221))
return
}
// No longer trim spaces for the keyword and replacement https://github.com/siyuan-note/siyuan/issues/9229
if keyword == replacement {
return