VSCodeVim / VSCodeVim/Vim

restore brackets to enclosing

Open
#2,656 0 comments 0 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

Is this a BUG REPORT or FEATURE REQUEST?:
Feature request

What happened:
Vim plugin implements its own cmd+D, which add a cursor to the next matching word without selecting them in insert mode, or selects the word in visual mode where (goes to the beginning fo a paragraph.

What did you expect to happen:
Something like cmd+D ( to do the same as ysiw)
or viw[ to do ysiw]

How to reproduce it:
I've tried adding ( in vim.handleKeys, which doesn't seem to work. Is there any way ignore keys like ( and [ so that they perform the same as in insert mode? It would be also cool if we can use i in visual mode to enter insert mode without deselecting.

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 at the vim.handleKeys configuration and trace the existing cmd+D behavior in insert and visual modes. Check how bracket keys and visual-mode i are currently handled; done means the requested surrounding-key behavior works without breaking the existing mode mappings.

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.