Skip to content

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

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

Danield6e750e2a418
diff --git a/app/appearance/langs/en_US.json b/app/appearance/langs/en_US.json
index 21631071d4..b0bd0d6c44 100644
--- a/app/appearance/langs/en_US.json
+++ b/app/appearance/langs/en_US.json
@@ -1171,6 +1171,8 @@
"202": "Cleaning data repo...",
"203": "The data repo is purged, [%d] snapshots and [%d] data objects have been deleted, and a total of [%s] disk space has been released",
"204": "The doc in the user guide does not support sharing to the community",
- "205": "The plugin is not supported in the current environment"
+ "205": "The plugin is not supported in the current environment",
+ "206": "Executing content replacement [%d/%d]",
+ "207": "Executing path replacement [%d/%d]"
}
}
diff --git a/app/appearance/langs/es_ES.json b/app/appearance/langs/es_ES.json
index 91ee1e5d78..cb29c5afee 100644
--- a/app/appearance/langs/es_ES.json
+++ b/app/appearance/langs/es_ES.json
@@ -1171,6 +1171,8 @@
"202": "Limpiando repositorio de datos...",
"203": "El repositorio de datos se purgó, [%d] instantáneas y [%d] objetos de datos se eliminaron y se liberó un total de [%s] espacio en disco",
"204": "La documentación en la guía del usuario no permite compartir con la comunidad",
- "205": "El complemento no es compatible con el entorno actual"
+ "205": "El complemento no es compatible con el entorno actual",
+ "206": "Ejecutando reemplazo de contenido [%d/%d]",
+ "207": "Ejecutando reemplazo de ruta [%d/%d]"
}
}
diff --git a/app/appearance/langs/fr_FR.json b/app/appearance/langs/fr_FR.json
index b9d338a9bc..699c9c31e0 100644
--- a/app/appearance/langs/fr_FR.json
+++ b/app/appearance/langs/fr_FR.json
@@ -1171,6 +1171,8 @@
"202": "Nettoyage du référentiel de données...",
"203": "Le référentiel de données est purgé, [%d] instantanés et [%d] objets de données ont été supprimés, et un total de [%s] espace disque a été libéré",
"204": "La documentation du guide de l'utilisateur ne prend pas en charge le partage avec la communauté",
- "205": "Le plugin n'est pas pris en charge dans l'environnement actuel"
+ "205": "Le plugin n'est pas pris en charge dans l'environnement actuel",
+ "206": "Exécution du remplacement de contenu [%d/%d]",
+ "207": "Exécution du remplacement de chemin [%d/%d]"
}
}
diff --git a/app/appearance/langs/zh_CHT.json b/app/appearance/langs/zh_CHT.json
index b33d360ecf..1fd2f8ec50 100644
--- a/app/appearance/langs/zh_CHT.json
+++ b/app/appearance/langs/zh_CHT.json
@@ -1171,6 +1171,8 @@
"202": "正在清理數據倉庫...",
"203": "數據倉庫清理完畢,已刪除 [%d] 個快照和 [%d] 個數據對象,共釋放 [%s] 磁盤空間",
"204": "用戶指南中的文檔不支持分享到社區",
- "205": "該插件不支持在當前環境下使用"
+ "205": "該插件不支持在當前環境下使用",
+ "206": "正在執行內容替換 [%d/%d]",
+ "207": "正在執行路徑替換 [%d/%d]"
}
}
diff --git a/app/appearance/langs/zh_CN.json b/app/appearance/langs/zh_CN.json
index abe2e0cfd3..a2561dab9f 100644
--- a/app/appearance/langs/zh_CN.json
+++ b/app/appearance/langs/zh_CN.json
@@ -1173,6 +1173,8 @@
"202": "正在清理数据仓库...",
"203": "数据仓库清理完毕,已删除 [%d] 个快照和 [%d] 个数据对象,共释放 [%s] 磁盘空间",
"204": "用户指南中的文档不支持分享到社区",
- "205": "该插件不支持在当前环境下使用"
+ "205": "该插件不支持在当前环境下使用",
+ "206": "正在执行内容替换 [%d/%d]",
+ "207": "正在执行路径替换 [%d/%d]"
}
}
diff --git a/kernel/model/search.go b/kernel/model/search.go
index c3ab107484..61879b9161 100644
--- a/kernel/model/search.go
+++ b/kernel/model/search.go
@@ -389,12 +389,14 @@ func FindReplace(keyword, replacement string, ids []string, paths, boxes []strin
return
}
- util.PushEndlessProgress(fmt.Sprintf(Conf.Language(70), fmt.Sprintf("%d/%d", i, len(ids))))
+ util.PushEndlessProgress(fmt.Sprintf(Conf.Language(206), i+1, len(ids)))
}
- for _, renameRoot := range renameRoots {
+ for i, renameRoot := range renameRoots {
newTitle := renameRootTitles[renameRoot.ID]
RenameDoc(renameRoot.Box, renameRoot.Path, newTitle)
+
+ util.PushEndlessProgress(fmt.Sprintf(Conf.Language(207), i+1, len(ids)))
}
WaitForWritingFiles()