VSCodeVim / VSCodeVim/Vim

Cannot select text from bottom to top using shift+mouse

Open
#5,191 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/selection kind/bug system/mac
Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Describe the bug
Cannot select text from bottom to top using shift+mouse, but select from top to bottom is working properly.

To Reproduce
Steps to reproduce the behavior:

  1. Locate cursor at }
  2. Shift + Left-click at be
<InlineToolbar>
  {
    // may be use React.Fragment instead of div to improve perfomance after React 16
           ^ 2. Shift + Left-click here
    (externalProps) => (
      <div>
        <BoldButton {...externalProps} />
        <ItalicButton {...externalProps} />
        <UnderlineButton {...externalProps} />
        <CodeButton {...externalProps} />
        <Separator {...externalProps} />
        <UnorderedListButton {...externalProps} />
        <OrderedListButton {...externalProps} />
        <BlockquoteButton {...externalProps} />
        <CodeBlockButton {...externalProps} />
      </div>
    )
  }
  ^ 1. Locate cursor here
</InlineToolbar>

Expected behavior
Select a bunch of text

Screenshots
vscodevim.20200916.mov.zip

Environment (please complete the following information):

  • Extension (VsCodeVim) version: v1.16.0
  • VSCode version: 1.49.0
  • OS: macOS 10.15.6

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

The issue names no source file or test; first reproduce the reverse Shift+mouse selection failure in VSCodeVim on the stated VSCode, extension, and macOS versions, then trace the extension's selection handling entry point. Done means selecting from the bottom to the top works consistently while the existing top-to-bottom behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.