VSCodeVim / VSCodeVim/Vim

Changing case with regex

Open
#7,910 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/commandline area/search kind/enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.