VSCodeVim / VSCodeVim/Vim

[CURSOR] Select inside tags also selects opening tag's ">" character

Open
#9,564 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
The goal is to select content inside of html tags in CURSOR IDE.

The key combo I am using is "v" + "i" + "t".

To Reproduce

  1. create opening and closing div tag and put some content in it.
  2. Try to use the following key combo "v" + "i" + "t"
  3. It select everything inside of the tags but also the ">" sign of the opening html tag.

Expected behavior
Select content ONLY inside tags.

Screenshots

Image
  • Extension (VsCodeVim) version: 1.29.0
  • Cursor version: 0.48.7
  • OS: macOS, 14.6.1

Additional context
Any tips on how to solve this would be very much appreciated.

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

Reproduce the issue in CURSOR IDE using the v + i + t key sequence on a div containing text. Trace the HTML tag text-object handling in the VSCodeVim extension and verify that the selection excludes the opening tag's > character while still selecting the content inside the tags.

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
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.