mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-07 17:28:50 +01:00
🎨 Replace All is no longer affected by pagination https://github.com/siyuan-note/siyuan/issues/8265
This commit is contained in:
parent
c49ac8990c
commit
d6e750e2a4
6 changed files with 19 additions and 7 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue