Changing case with regex
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Is your feature request related to a problem? Please describe.
In Vim, you can change character case when replacing a pattern with regex. VSCodeVim doesn't support that. Namely, I'm talking about the \U and \L operators.
E.g.: In Vim you can use the following command to change a snake case string into camel case:
s:/_(.)/\u\1/g.
Describe the solution you'd like
Support the changing case operators. More details here: https://vim.fandom.com/wiki/Changing_case_with_regular_expressions
Describe alternatives you've considered
I usually open a file in Vim to do these replacements.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named in the issue. Start by reproducing the Vim substitution example and reading the linked Vim reference, then locate the extension's substitution handling; done means supporting the requested \U and \L case-changing operators with the documented replacement behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100