VSCodeVim / VSCodeVim/Vim

Is there any way to set a limit for EasyMotion?

Open
#8,783 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

I really like easymotion, I've made a remap of leader, leader, 2, f to f (same with F), so it's much better to use that way. The problem is that my screen has 51 lines, and Easymotion takes 100 lines no matter what, and I would like to find a way to lower it to 50

For a better use of "Insearch, Easymotion & Skeak" together:

  • / & ? = SEARCH whole file
  • f & F = GO to word within the range of the screen (e.g. 50)
  • s & S = GO to the nearest word

Solution
I think that adding a limit like. vim.easymotion.linesSearch: 50 on the settings.json, that is gonna look just in a range of 50 or other number of specific lines, e.g:
f = 50 lines forward, F = 50 lines backward

I don't think is that hard to implement, actually I'm not talking about words, is just the lines that is looking for, we don't have a lighspeed motion, but this one can be improved

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

No files or tests are named. Start by locating the EasyMotion implementation and the extension's settings handling, then trace how line ranges are selected for f and F. Done means a configurable line limit is documented and covered by tests for forward and backward searches.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
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.