Topic: Group renaming
I am working on a new feature and I would like your opinion before finalizing its implementation.
For now it is called "Group renaming". The idea behind is to share information between a number of
related/associated files and use it in a renaming operation.
Its usage can easily be seen to match video and subtitles base names, adding the date a picture was taken
to its name and to its thumbnail file name etc.
Of course, a group of files can be composed of more than two elements.
Two examples are dedicated to this in current Siren's help. It works but needs too many steps.
The solution, of course, changes the expression grammar.
A new "modifier" : < size, pos > must immediately follow the '%' that prefix the variable identifier.
A file group will be defined by a number of consecutive selected files (size).
The file to pick the data from will be identified by its place in the group (pos).
For example, to rename the subtitles : subMov1.srt and st2.srt to match their associated video : Video1.avi, Video2.avi
The files have to be selected : video first, subtitle second
The expression can be : %<2,1>b.%e
%<2,1> : the group is composed of two elements. The data will be extracted from the first one : the video file
%<2,1>b : the base name of the video file
%<2,1>b. : a '.' is added
%<2,1>b.%e : finally the extension of the current file (avi or srt) is added to the new name
The result will be :
The "<>" modifier can be applied to any variable and to rename raw/jpg/thm : Base name date of jpg picture etc.
the expression could be : %b - %<3,2>Xdo.%e
Any comments are welcome.