VSCodeVim / VSCodeVim/Vim

Unexpected behavior: In visual mode <code>`\<S-,\></code> does not take you to the start of the last selection

Open
#8,251 0 comments 0 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

Type: Bug

Describe the bug
Mode: Visual/Visual-Line/Visual-Block
`<S-,> does not take you to the start of the last selection made in a visual mode.

To Reproduce
Steps to reproduce the behavior:

  1. Go to any visual mode and make a selection
  2. Go back to normal mode
  3. Scroll down to another location
  4. Enter a visual mode and press `<S-,>

Expected behavior
Ideally selection expands to start of last selection

Extension version: 1.24.3
VS Code version: Code 1.75.1 (441438abd1ac652551dbe4d408dfcec8a499b8bf, 2023-02-08T21:32:34.589Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Sandboxed: Yes

vscodevimselection

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 behavior in VS Code using Visual, Visual-Line, and Visual-Block modes, following the listed steps and key sequence. Trace the extension's handling of the last visual selection and verify that pressing the key sequence from a new visual selection expands it to the start of the previous selection.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.