EasyMotion JumpAnywhere doesn't always search around cursor
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 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:
- Load a file with a lot of text.
- Position the cursor in the middle of the file.
- 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

Environment:
- Extension (VsCodeVim) Version:
1.12.4 - OS Version:
Linux x64 4.4.0-169-generic - VSCode version:
1.41.1
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 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