Batch rename files #11696

Open
opened 2026-02-21 21:49:13 -05:00 by deekerman · 3 comments
Owner

Originally created by @github-account1111 on GitHub (Feb 4, 2021).

Please provide the following information

qBittorrent version and Operating System

4.3.3 Windows 10 1809 64-bit.

What is the problem

Not a problem per se, but I would like an ability to rename multiple files at once.
image
In the pic above, for example, I want all the episodes to follow the sXXeXX naming format instead of XXxXX that the author chose. I did it by hand for maybe 15 episodes, but there are hundreds.

It'd be nice to be able to select multiple files and batch-rename using find-replace patterns or regex the way Directory Opus does it, for example.

Even more versatile would be to allow piping the files to an external renamer, e.g. https://man.archlinux.org/man/extra/moreutils/vidir.1.en or https://github.com/marcusbuffett/pipe-rename. This would let the user choose a familiar editor, e.g. VIM or VSCode, instead of having to adjust to the renaming UI. It would also allow taking advantage of multi-cursor editing, macros and other functionality within those editors without having to implement and maintain them in qBt.

Steps to reproduce

Add a multi-file torrent.

Originally created by @github-account1111 on GitHub (Feb 4, 2021). **Please provide the following information** ### qBittorrent version and Operating System 4.3.3 Windows 10 1809 64-bit. ### What is the problem Not a problem per se, but I would like an ability to rename multiple files at once. ![image](https://user-images.githubusercontent.com/5728319/106853314-6aae8980-66b1-11eb-868e-d047eb179fa1.png) In the pic above, for example, I want all the episodes to follow the sXXeXX naming format instead of XXxXX that the author chose. I did it by hand for maybe 15 episodes, but there are hundreds. It'd be nice to be able to select multiple files and batch-rename using find-replace patterns or regex the way [Directory Opus](https://www.gpsoft.com.au/help/opus12/index.html#!documents/Rename_Modes.htm) does it, for example. Even more versatile would be to allow piping the files to an external renamer, e.g. https://man.archlinux.org/man/extra/moreutils/vidir.1.en or https://github.com/marcusbuffett/pipe-rename. This would let the user choose a familiar editor, e.g. VIM or VSCode, instead of having to adjust to the renaming UI. It would also allow taking advantage of multi-cursor editing, macros and other functionality within those editors without having to implement and maintain them in qBt. ### Steps to reproduce Add a multi-file torrent.
Author
Owner

@lev777 commented on GitHub (Feb 9, 2021):

next level / pipe dream after rename by pattern would be rename by tag

@lev777 commented on GitHub (Feb 9, 2021): next level / pipe dream after rename by pattern would be rename by tag
Author
Owner

@github-account1111 commented on GitHub (Feb 9, 2021):

Actually I also feel like this is at the very least related to #439. After all, filename is a part of filepath.

@github-account1111 commented on GitHub (Feb 9, 2021): Actually I also feel like this is at the very least related to #439. After all, filename is a part of filepath.
Author
Owner

@xavier2k6 commented on GitHub (May 24, 2025):

ANNOUNCEMENT!

For anybody coming across this "Feature Request" & would like/love to see a potential implementation in the future!
Here are some options available to you:

  1. Please select/click the 👍 &/orreactions in the original/opening post of this ticket.

  2. Please feel free (If you have the "skillset") to create a "Pull Request" implementing what's being requested in this ticket.
    (new/existing contributors/developers are always welcome)


DO:

  • Provide constructive feedback.
  • Display how other projects implemented same/similar etc.

DO NOT:

  • Add a "Bump", "me too", "2nd/3rd" etc. or "criticizing" comment(s).
    (These will be disregarded/hidden as "spam/abuse/off-topic" etc. as they don't provide anything constructive.)
@xavier2k6 commented on GitHub (May 24, 2025): ## ANNOUNCEMENT! For anybody coming across this **_"Feature Request"_** & would like/love to see a potential implementation in the future! **Here are some options available to you:** 1. Please select/click the 👍 **&/or** ❤ `reactions` in the original/opening post of this ticket. 2. Please feel free _(If you have the "skillset")_ to create a **_"Pull Request"_** implementing what's being requested in this ticket. **_(new/existing contributors/developers are always welcome)_** ____ **DO:** * Provide constructive feedback. * Display how other projects implemented same/similar etc. **DO NOT:** * Add a "Bump", "me too", "2nd/3rd" etc. or "criticizing" comment(s). **(These will be disregarded/hidden as "spam/abuse/off-topic" etc. as they don't provide anything constructive.)**
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/qBittorrent#11696
No description provided.