-
-
Notifications
You must be signed in to change notification settings - Fork 260
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
Next match (n
) in FindMode
doesn't scroll far enough to result
#819
Comments
Thank you for the fix! I can confirm that this is now fixed. (In this commit? db09cef) (also you could automatically close issue with commit by using several keywords (ref)) However, I have a question. Could we configure how the "out of boundary" search result is brought into viewport? For example, in the attachment below, the viewport will be scrolled enough so that the "return" result is on the bottom of the viewport. I would like to have the viewport to be scrolled far enough so that the result is at the middle of the viewport. (more or less like scrollOff in Vim?) |
Um, up to now not available in Vimium C. The current logic is to scroll as few times as possible, so if an element "looks like visible", then Vimium C won't scroll the page. Your idea sounds useful in some situations, but unfortunately I have no much rest time in next several months to implement it. In 2023 Chrome will abort all extensions "using the old extension API platform 'V2' " on its Web Store (see https://developer.chrome.com/docs/extensions/mv3/mv2-sunset/), |
@gdh1995 It's alright. Thank you for solving this issue anyway! Maybe for my feature suggestion, I think it's better to create a new issue/feature request ticket as my original issue has been solved. I will do so. |
Describe the bug
In long webpage, pressing
n
(select next match) inFindMode
sometimes doesn't scroll to the next match. It will still scroll upwards/downwards, but the viewport is not scrolled far enough to show the next match in the viewport.To Reproduce
Steps to reproduce the behavior:
Go to https://neovim.io/doc/user/lua.html
/return<CR>
. First match ofreturn
. Still inside the current viewport.n
. Second match ofreturn
. Not shown in the current viewport.Browser, OS and Vimium C versions
The text was updated successfully, but these errors were encountered: