restore brackets to enclosing
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
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
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