-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added support for any case, and Title Case #1
base: master
Are you sure you want to change the base?
Conversation
now this kind of strings are supported: aNy-CasE or Any cAse and new: Title Case
This fork add support for: `aNy-CasE` or `Any cAse` - always converted to snake_case | ||
Also I added support for new: `Title Case` | ||
|
||
<video controls="true" allowfullscreen="true" poster="path/to/poster_image.png"> | ||
<source src="https://user-images.githubusercontent.com/13521338/113520457-8213d100-9593-11eb-974b-b8172eddd950.mp4" type="video/mp4"> | ||
</video> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey! thanks for your contribution!
Could you please make this look like it is part of the same repo? 🙇
plugin/casechange.vim
Outdated
let l:upper = '\v\C^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$' "UPPER_CASE | ||
let l:pascal = '\v\C^[A-Z][a-z0-9]*([A-Z0-9][a-z0-9]*)*$' "PascalCase | ||
let l:title = '\v\C^[A-Z][a-z0-9]*( [A-Z][a-z0-9]+)*$' "Title Case | ||
let l:any = '\v\C^[a-zA-Z][a-zA-Z0-9]*(( |_|-)[a-zA-Z][a-zA-Z0-9]+)*$' "aNy_casE Any-case etc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This regex seems unused...
Man, really appreciate the PR. I'm surprised you found this and are using it 😅, I don't recall adding it to any plugin list... |
now this kind of strings are supported: 'aNy-CasE' or 'Any cAse' etc -> always converted to snake_case
and I added new: Title Case
TitleCase.mp4