This is a very early version of a patch that I had in mind. The purpose of this differential is to gather feedback about said patch and decide whether it is worth moving forward with.
The idea behind this is not to replace KRename or similar tools, but to add some slightly-more-than-basic batch rename tools while keeping the whole thing user friendly and integrated with Dolphin.
Something that the current rename handles and for which this new dialog might be an overkill, is the renaming of a single file, but that can easily be solved by making inline-rename the only option(Feature removal alert) for single file rename or by showing a new small dialog with just an input and a "rename" button.
This patch would add the following over the existing rename dialog: Pad the sequential number, allow for more "variables" besides the auto-generated number (eg current date, time etc), find & replace (plain text or regex) and a preview table widget which can preview the changes before being applied.
A new type of renaming that isn't included, but seems interesting to me is to be able to construct a new string from regular expression matches. Eg.:
Files:
1.TrackName_Artist_album.mp3
2.TrackName2_Artist_album.mp3
Find: \d\.(.+)_(.+?)_
New name: \2 - \1.mp3
Result:
Artist - TrackName.mp3
Artist - TrackName2.mp3
----
Also, please don't mind the code for now as it is for demonstration only.
Screenshots:
{F5720709}{F5720708}
BUG: 381483
BUG: 371383