Shorthand for vim-surround for surrounding the closest pair of thing
Nobody has claimed this yet.
- 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.
One thing I miss from Atom's vim-mode-plus even after all these years, is a shorthand for surrounding the closest thing, whatever it is, since 90% of the time I'm operating on the closet braces/quotes/etc.
Describe the solution you'd like
Something like cs' and cs}, without needing to specify the ' or } part. Likewise e.g. ds, ys. Maybe using the leader key, or maybe just a raw, customizable key. It'll change/delete/yank the nearest surrounded pair of thing.
This also means repeating the action with . works on different pairs too!
Describe alternatives you've considered
Tried various other non-vim-based VSCode surrounding plugins but kept coming back to wanting this
Thank you!
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
The issue names no files, tests, or entry points. Begin by locating the implementation of the cs, ds, and ys actions and their repeat behavior. Done means a customizable shorthand can operate on the nearest surrounding pair and can be repeated with . on different pairs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100