VSCodeVim / VSCodeVim/Vim

Quotes Text Object

Open
#6,584 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

area/not-vim-core kind/feature
Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Based on https://github.com/beloglazov/vim-textobj-quotes

The goal is to just need to press cq, dq, yq, or vq to operate on the text in single ('), double ("), or back (`) quotes.

It would be great to see this featured implemented and I can help with code if you point me out to some examples of how text objects are currently implemented.

As a workaround I mapped q to single quotes and Q to double quotes

omap q i'
xmap q i'
omap Q i"
xmap Q i"

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 reviewing the existing text-object implementations in VSCodeVim and compare their behavior with beloglazov/vim-textobj-quotes. The work is done when cq, dq, yq, and vq operate on single, double, and backtick-quoted text in the relevant modes; no implementation files or tests are named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
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.