jmathai / elodie

An EXIF-based photo assistant, organizer and workflow automation tool.
https://bit.ly/introducing-elodie
Apache License 2.0
1.27k stars 139 forks source link

New option for file name capitalization handling #450

Open alterxyz opened 1 year ago

alterxyz commented 1 year ago

In this update, I have added a new option for file name capitalization handling, which allows users to convert specific parts of the file name to title case (first letter capitalized, other letters lowercase), while preserving the original case of the original_name. The previous code only supported two formats: all uppercase and all lowercase for whole file name.

To implement this feature, I added a new conditional branch to check whether the 'capitalization' setting in the configuration file is set to 'title'. Users can specify the delimiter (in this case, ']') and how to handle different parts of the file name in the configuration file according to their needs.

Possible future improvement: Support for extension capitalization.

I hope this change will provide more flexibility and customization options.

CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.

coveralls commented 1 year ago

Coverage Status

Coverage: 90.553% (-0.06%) from 90.61% when pulling fdb6821e6fbfcb0ad860223f9371e0a8dd3aab7c on alterxyz:patch-1 into 76ad82303fcbf0e4ab421dbfbb39e4a4cc76aecc on jmathai:master.