jdavisclark / CaseConversion

Case conversion plugin (pascal, camel, snake) for sublime text 2
MIT License
300 stars 47 forks source link

capitalized acronyms split by underscores using snake case conversion. Would be great to have option to preserve grouping #51

Open Simo-climb opened 3 years ago

Simo-climb commented 3 years ago

when converting the following string to snake case

WA Licensed Surveyors (Transfer of Land Act 1893) Regulations 1961

the expected result with preseverd leading acronym "WA" was

wa_licensed_surveyors_transfer_of_land_act_1893_regulations_1961

but the returned result for this and other strings with capitalized acronyms was

w_a_licensed_surveyors_transfer_of_land_act_1893_regulations_1961

if there is an acronym anywhere in the string it is split by underscores.

it would be good to be able to configure this option to be disabled to preserve the string element, or have another form of the snake case conversion that preserves the acronym.