Fix #34 kebabing a region can insert an unexpected hyphen
add string-inflection-erase-chars-when-region variable
Changed behavior when selecting region.
before: Foo::Bar --> foo_bar after: Foo::Bar --> foo::bar
Include : in string-inflection-erase-chars-when-region if want to behave as before.
Merged PR #32 Use defcustom and Change Some Wording
Fix #31 Better Whitespace Handling When Converting a Region
Fix #30 string-inflection-underscore affects C++ method accessors
before: fooBar->method --> foo_bar_>method after: fooBar->method --> foo_bar->method
Merged PR #28 Make string-inflection-get-current-word work more sensibly when transient mark mode is off
Merged PR #26 Add `Capital_Underscore_Form`
add string-inflection-capital-underscore function
The behavior of string-inflection-all-cycle has changed
before: foo_bar => FOO_BAR => FooBar => fooBar => foo-bar => foo_bar after: foo_bar => FOO_BAR => FooBar => fooBar => foo-bar => Foo_Bar => foo_bar
Bugfix issue #25 When executing kebab-case etc., point advances to the next word, and the previous word can not be converted continuously
When it is simply camelcase, it means the name with the leading letters in lowercase.
The name with the initial capital letter is called the pascal-case.
| Before | After |
|---|---|
| FooBar | fooBar |
| Before | After |
|---|---|
| camelcase | pascal-case |
| lower-camelcase | camelcase |
(fset 'string-inflection-upper-camelcase-function 'string-inflection-pascal-case-function)
(fset 'string-inflection-lower-camelcase-function 'string-inflection-camelcase-function)
(fset 'string-inflection-upper-camelcase-p 'string-inflection-pascal-case-p)
(fset 'string-inflection-lower-camelcase-p 'string-inflection-camelcase-p)Originally we had defined functions of both camelcase and camelize names.
I deleted the function containing camelize to make it simple.