VSCodeVim / VSCodeVim/Vim

`ci/` for JavaScript regex

Open
#8,822 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

In JavaScript, regexes are written like

/[a-zA-Z0-9]/.test('some text')

I would like to quickly delete/change the contents of the Regex. Since the / are basically acting like quotes/brackets, I would like it if I could place my cursor between them and run ci/, ca/, di/ and da/ commands.

Describe alternatives you've considered
ct/ means I have to move the cursor more precisely.

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

Start by tracing the existing handling for ci/, ca/, di/, and da/ commands, focusing on slash-delimited JavaScript regexes such as /[a-zA-Z0-9]/. Verify that each command works with the cursor between the slashes and that the regex contents, or the delimiters and contents, are selected as requested.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.