Closes #151.
- Replace in Files… (Mac, Edit ▸ Find, ⌥⇧⌘F, palette): one folder or all folders, plain text or ICU regexp (the find bar's and
:s's dialect;\1/$1,\&),case-fold-searchwithsearch-upper-caseandcase-replaceasreplace-matchdoes. Preview by file and line, each match or file can be unticked. Search runs off the main actor, shows progress, can be stopped. Org files plus .txt/.md/.markdown. - Rename Tag… / Rename TODO Keyword… (Mac Org ▸ TODO and Tags and palette; iOS Commands): only heading tags,
#+TAGS,#+FILETAGS; only heading keywords and#+TODO/#+SEQ_TODO/#+TYP_TODO. Tags realigned asorg-set-tags(and after a keyword change, asorg-todo). Existing name merges; done/not-done crossing refused with the file named. Optional change oforg-tag-alist/org-todo-keywordsin config.toml. Headings keep their keyword where the new one wouldn't be a keyword (file defines it, setup file in scope, or config renamed). - Applying:
DocumentSession.applyChanges. Open buffer: one undoable edit, saved per save mode. Not open (or open without an editor): old text kept in recovery asreplace("Before a change across files"), then written throughSaver. A file changed since the search is left alone. - Skipped:
.gpgfiles; PGP armored blocks under headings taggedorg-crypt-tag-matcher(own or inherited). - Tests:
Tests/OrgCoreTests/ReplaceTests.swift(Emacs oracle:perform-replacecase rules and groups,org-set-tagsalignment, keyword parsing andorg-align-tagsafter rename),Tests/OrgAppTests/ReplaceInFilesTests.swift(files not open, open buffer with unsaved edits and undo, unticked, stale file, cancel, config, refusals). - Manual: 02-the-editor (Replacing in many files), 05-todos-and-tags, 14-ios. 43 strings in the catalog with de, es, fr, ja, pt-BR.
swift test, both Xcode builds green. Mac sheets checked by snapshot; iOS screen checked only by build (needs a simulator or device).