Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any way to set a limit for EasyMotion? #8783

Open
darianmorat opened this issue Dec 17, 2023 · 0 comments · May be fixed by #9100
Open

Is there any way to set a limit for EasyMotion? #8783

darianmorat opened this issue Dec 17, 2023 · 0 comments · May be fixed by #9100

Comments

@darianmorat
Copy link

darianmorat commented Dec 17, 2023

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

HenryTSZ added a commit to HenryTSZ/NVim that referenced this issue Jun 28, 2024
@HenryTSZ HenryTSZ linked a pull request Jun 28, 2024 that will close this issue
HenryTSZ added a commit to HenryTSZ/NVim that referenced this issue Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant