Configuring naming rules

I’m new to Darktable 5.2.1 and am switching from Lightroom. I would like to duplicate my LR naming structure.

Lightroom/2025/2025-09 Alaska Cruise/2025-09070 Alaska Cruise 4629.cr2

I believe I have everything figured out EXCEPT the filename.

/media/$(USERNAME)/Photographs/Darktable
$(EXIF.YEAR)/$(EXIF.YEAR)-$(EXIF.MONTH) $(JOBCODE)
$(EXIF.YEAR)-$(EXIF.MONTH)$(EXIF.DAY) $(JOBCODE) $(FILE.NAME).$(FILE_EXTENSION)

This gives me basically what I’m looking for except it uses the entire original filename (_IMG_4629). At one point I was testing Darktable and the default rule gave me just the number (4629).

I have been unable to duplicate the rule and don’t remember which version I had been testing. Any help would be greatly appreciated. $(SEQUENCE) didn’t seem to do the trick.

See the string manipulation part of the variables page in the manual darktable user manual - variables

1 Like

THANX!! Why I didn’t see that section before I have no idea.

$(FILE.NAME:4) worked perfectly.
:sunglasses: