andersennl / case-switch

Atom editor package to change variable names from kebab- to snake- to camelCase.
MIT License
4 stars 3 forks source link

Change to sentence case removes line breaks as well as single and double quotes from text #10

Open paul724 opened 2 years ago

paul724 commented 2 years ago

Hope this is useful and possible to update: I can imagine many reasons why removing returns ' and " is required but here is an example where preserving all of the orginal content would be really helpful:

TIMBER “ROUGH SAWN” 2.1M 125 X 150MM STRAINERS UC4 -7’5-6 TIMBER "ROUGH SAWN" 1.8M X 100-125MM UC4 (6’ 4-5") TIMBER "ROUGH SAWN" 2.10M 150- 175MM STRAINERS UC4 (8’ 6-7)

is changed to one long sentence without " & ' : Timber rough sawn 2 1 m 125 x 150 mm strainers uc4 7 5 6 timber rough sawn 1 8 m x 100 125 mm uc4 6 4 5 timber rough sawn 2 10 m 150 175 mm strainers uc4 8 6 7

Using BBEdit the result is:

Timber “rough sawn” 2.1m 125 x 150mm strainers uc4 -7’5-6 Timber "rough sawn" 1.8m x 100-125mm uc4 (6’ 4-5") Timber "rough sawn" 2.10m 150- 175mm strainers uc4 (8’ 6-7)

andersennl commented 2 years ago

Hi @paul724, your example makes sense, but unfortunately I don't have time at the moment to implement this. If you can implement the suggested changes yourself, feel free to open a pr.

paul724 commented 2 years ago

Hello @andersennl Unfortunately I don't have the technical wisdom to do it myself. If I did I would love to do it as I am really really appreciating Atom. Thank you for this package.