VSCodeVim / VSCodeVim/Vim

EasyMotion JumpAnywhere doesn't always search around cursor

Open
#4,444 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/plugin kind/enhancement
Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Describe the bug
When using EasyMotion JumpAnywhere function, it doesn't always start highlighting 2 character combinations around where the cursor currently is.

To Reproduce
Steps to reproduce the behavior:

  1. Load a file with a lot of text.
  2. Position the cursor in the middle of the file.
  3. Trigger EasyMotion JumpAnywhere. (Currently I use regex \b[A-Za-z0-9]|[A-Za-z0-9]\b)

Expected behavior
I expected EasyMotion to highlight start and end of words around the cursor, not to start the highlighting far before the cursor, so we run out of 2 character combinations by the time we get to the cursor.

Screenshots
easymotion-jumpyanywhere

Environment:

  • Extension (VsCodeVim) Version: 1.12.4
  • OS Version: Linux x64 4.4.0-169-generic
  • VSCode version: 1.41.1

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

Start by reproducing the issue in a large text file with the reported regex, placing the cursor in the middle before triggering EasyMotion JumpAnywhere. Trace the JumpAnywhere implementation and its highlighting/search order; done means word starts and ends around the cursor are highlighted before distant matches consume the available two-character combinations.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
developer-experience, tooling
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.