🎨 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:44:45 +08:00
parent c49ac8990c
commit d6e750e2a4
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
6 changed files with 19 additions and 7 deletions

View file

@ -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]"
}
}

View file

@ -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]"
}
}

View file

@ -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]"
}
}

View file

@ -1171,6 +1171,8 @@
"202": "正在清理數據倉庫...",
"203": "數據倉庫清理完畢,已刪除 [%d] 個快照和 [%d] 個數據對象,共釋放 [%s] 磁盤空間",
"204": "用戶指南中的文檔不支持分享到社區",
"205": "該插件不支持在當前環境下使用"
"205": "該插件不支持在當前環境下使用",
"206": "正在執行內容替換 [%d/%d]",
"207": "正在執行路徑替換 [%d/%d]"
}
}

View file

@ -1173,6 +1173,8 @@
"202": "正在清理数据仓库...",
"203": "数据仓库清理完毕,已删除 [%d] 个快照和 [%d] 个数据对象,共释放 [%s] 磁盘空间",
"204": "用户指南中的文档不支持分享到社区",
"205": "该插件不支持在当前环境下使用"
"205": "该插件不支持在当前环境下使用",
"206": "正在执行内容替换 [%d/%d]",
"207": "正在执行路径替换 [%d/%d]"
}
}

View file

@ -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()