The extension ignores folded/collapsed state of text blocks
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
When there are folded/collapsed blocks of text, cursor move commands don't skip over folded blocks.
To Reproduce
Steps to reproduce the behavior:
- Collapse/fold some blocks of text.
- Go through folded block (from top to bottom or bottom-up) - instead of skipping the block, the editor expands the block and moves cursor through it.
- Use other cursor moves such as 'H', 'L', 'Z' (move to top/bottom/middle of screen) - cursor stops at folded block as if it has stopped at a line inside the block, instead of using only the visible part of text.
Expected behavior
I expect the cursor to skip over collapsed blocks.
Environment (please complete the following information):
- Extension (VsCodeVim) version: 1.32.4
- VSCode version: 1.108.1
- OS: Windows 11
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 by reproducing the issue in VSCode 1.108.1 with folded text blocks, then compare cursor movement through collapsed blocks with the H, L, and Z commands. Done means cursor movement skips collapsed blocks and screen-position commands use only visible text without expanding or stopping inside folded content.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100