docs/features/edit.md
The Edit menu provides tools for finding, replacing, and modifying subtitle text and selections.
<!-- Screenshot: Edit menu -->Undo or redo the last editing action.
Ctrl+ZCtrl+YView the complete history of changes made to the subtitle file and restore any previous state.
<!-- Screenshot: Show history window -->Search for text in the subtitle.
Ctrl+FF3Shift+F3Options:
Find and replace text in the subtitle.
Ctrl+HApply multiple find-and-replace rules at once, organized into named categories. Rules are persisted across sessions.
The window is split into two resizable panels:
| Panel | Description |
|---|---|
| Left — Rules | Tree of categories and their rules. Each rule shows its type icon, find pattern, replacement, and an optional description. |
| Right — Fixes | Preview of all lines that will be changed. The Before column highlights removed characters in red and the After column highlights added characters in green. Selecting a row reveals an Applied rules detail panel at the bottom listing every rule that matched that line. |
Each rule has one of three match types, shown as an icon in the tree:
| Type | Description |
|---|---|
| Case insensitive | Plain text match, ignores case |
| Case sensitive | Plain text match, exact case |
| Regular expression | Full .NET regex syntax |
Right-click a category node to open its context menu:
.template file (JSON or legacy SE4 XML).template fileRight-click a rule node to open its context menu:
Double-clicking a rule also opens the Edit rule dialog.
| Shortcut | Action |
|---|---|
Ctrl+N | Add a new rule to the selected category, or insert after the selected rule |
Ctrl+D | Duplicate the selected rule |
Delete | Delete the selected rule (focus must be in the rules tree) |
Space | Toggle the selected node (category or rule) on/off |
Escape | Close the window |
The expand/collapse buttons (+ / −) above the tree expand or collapse all categories at once.
Rule sets are stored as JSON .template files and can be shared across installations. The export dialog lets you choose which categories to include. SE4-format XML files can also be imported.
Select or deselect subtitle lines based on rules (e.g., text contains, duration, etc.).
Select all subtitle lines.
Ctrl+AInvert the current selection (select unselected lines, deselect selected ones).
Toggle right-to-left text direction for languages like Arabic and Hebrew.