vit operation error selected character >
Open
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 selected character was error, when press vit in normal mode.As shown below:
The lower part of the figure shows how it looks in vim, which is correct.
To Reproduce
Steps to reproduce the behavior:
- get a vue file with code like:
<li
v-for="item in diseases"
:key="item.name"
class="ellipsis"
aria-role="button"
:aria-label="item.name"
@click="toDisease(item)"
>
{{ item.name }}
<span class="btn-link" />
</li>
- move cursor into li tag
- presse
viton normal mode
- Extension (VsCodeVim) version: v1.27.3
- VSCode version: 1.91.1 (Universal)
- OS: Darwin arm64 23.5.0
commit: f1e16e1e6214d7c44d078b1f0607b2388f29d729
date: 2024-07-09T22:07:54.982Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Darwin arm64 23.5.0
Additional context
Add any other context about the problem here.
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
Reproduce the issue in a Vue file using the provided
vit in normal mode. Trace the normal-mode vit text-object handling and compare the selected character with Vim; done means the matching selection agrees with Vim for this case and a regression test covers it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100