VSCodeVim / VSCodeVim/Vim

di( doesn't work if there are multiple parentheses pairs

Open
#9,576 0 comments 2 reactions 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

Describe the bug
di( doesn't work if there are multiple parentheses pairs.

To Reproduce
Steps to reproduce the behavior:

  1. Have a line with multiple closed parentheses pairs, e.g. this (is) a (bug)
  2. Place the cursor between the parentheses pairs, e.g. at the word a
  3. di(
  4. See error: this () a (bug). And the cursor at the same place as it was in step 2.

Expected behavior
this (is) a () and the cursor between the last pair of parentheses

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 reproducing the reported di( behavior in VSCodeVim with this (is) a (bug) and compare it with the expected result. Trace the implementation of the di( text-object handling and add or update coverage for multiple parenthesis pairs so the final deletion and cursor position match the report.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.