Automatically add to catalog on export?

I have an export preset to convert raw to jpeg and store in the same folder as the raw image. Is there a way for darktable to automatically add that to the catalog (doing version detection at the same time would be great too). Or do I have to scan the folder manually after the export?

you can do it by lua scripts - you may copy stuff from edit in gimp lua script (lua-scripts/gimp.lua at master · darktable-org/lua-scripts · GitHub) since there an image is exported, opened in gimp and reimported after editing. So if you strip the gimp stuff it can be a starting point for you …

Thanks, Martin! I’m not very knowledgeable about scripting but it should be a fun project.