← XeFM crftwr/xefm on GitHub · craftware

Batch Rename Feature

Overview

The batch rename feature allows you to rename multiple files at once using regex patterns and destination templates with special macros.

How to Use

  1. Select Multiple Files: Use the space bar to select multiple files in the file manager
  2. Trigger Batch Rename: Press ‘R’ key when multiple files are selected
  3. Enter Patterns: The batch rename dialog will appear with two input fields:
    • Regex Pattern: A regular expression to match parts of the original filenames
    • Destination Pattern: A template for the new filenames using special macros

Special Macros

The destination pattern supports the following macros:

Examples

Example 1: Add Prefix

Example 2: Change Extension

Example 3: Add Sequential Numbers

Example 4: Extract and Reorder Parts

Dialog Controls

Preview

The dialog shows a real-time preview of the rename operation:

Safety Features

Notes