Skip to content

Multiple replace: import rules directly from an SE 4 Settings.xml#12254

Merged
niksedk merged 1 commit into
mainfrom
feature/multiple-replace-import-settings-xml
Jul 7, 2026
Merged

Multiple replace: import rules directly from an SE 4 Settings.xml#12254
niksedk merged 1 commit into
mainfrom
feature/multiple-replace-import-settings-xml

Conversation

@niksedk

@niksedk niksedk commented Jul 7, 2026

Copy link
Copy Markdown
Member

Follow-up to #12225.

The right-click Import in Multiple Replace only offered .template/.csv in the file picker and only parsed the stand-alone SE 4 export shape (<MultipleSearchAndReplaceList>), so users migrating from SE 4 could not point it at their old Settings.xml — the Ctrl+4 "Set up like Subtitle Edit 4" flow was the only path that read it.

Changes

  • The import file picker now also accepts .xml.
  • Content containing <MultipleSearchAndReplaceGroups> (the Settings.xml shape) is routed through Se4SettingsXmlReplaceImporter — the same parser Ctrl+4 uses — via a new conversion to the import dialog's CategoryImportExportItem shape. Exported SE 4 rule files (<MultipleSearchAndReplaceList>) keep going through Se4XmlImporter as before.
  • Docs updated (docs/features/edit.md), including the default SE 4 Settings.xml locations.
  • Unit tests for the new conversion, including the Enum.Parse round-trip the dialog performs when building tree nodes.

🤖 Generated with Claude Code

…s.xml

The right-click Import in Multiple Replace only offered .template/.csv in
the file picker and only parsed the stand-alone SE 4 export shape
(<MultipleSearchAndReplaceList>), so users migrating from SE 4 could not
point it at their old Settings.xml (#12225) - the Ctrl+4 setup was the
only path that read it.

- Add .xml to the import file picker filter.
- Detect the Settings.xml shape (<MultipleSearchAndReplaceGroups>) and
  route it through Se4SettingsXmlReplaceImporter (the Ctrl+4 parser),
  converted to the import dialog's CategoryImportExportItem shape.
- Document it in docs/features/edit.md, with the default SE 4
  Settings.xml locations.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@niksedk niksedk merged commit 4073332 into main Jul 7, 2026
1 of 3 checks passed
@niksedk niksedk deleted the feature/multiple-replace-import-settings-xml branch July 7, 2026 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant