-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Cannot go to caret mode from normal mode #3877
Conversation
Hi, thanks for fixing the caret mode. :) But there's one little bug here: In caret mode, forward word jumping using I suppose it's due to the altering below (starting from line 55): // Native word movements behave differently on Linux and Windows, see #1441. So we implement some of them
// character-by-character.
if (granularity === vimword && direction === forward) {
while (this.nextCharacterIsWordCharacter())
if (this.extendByOneCharacter(forward) === 0)
return;
while (this.getNextForwardCharacter() && !this.nextCharacterIsWordCharacter())
if (this.extendByOneCharacter(forward) === 0)
return;
} else if (granularity === vimword) {
return this.selection.modify(this.alterMethod, backward, word);
} FYI: I'm using Chrome 96 on Mac 10.15 |
Would love to see his merged! |
Update from upstream
Instead of call directly browser function to scroll, we call it via setTimeout, so the event loop can be activated
Update from upstream
Scrolling is stucked until end of the page reached.
@tuanbass Hello, you have pushed some new commits to the |
Revert "Infinite scroll issue"
Thanks for pointing out. |
Any idea when this will be merged? Would really benefit from this functionality. Thank you. |
This is great; thanks for the cleanup and the fix @tuanbass ! |
Just now I reviewed all my code in #3867, and I found this PR lacks a place: vimium/content_scripts/mode_visual.js Lines 380 to 383 in 66adcde
Here a following |
In recent releases, I cannot go to the caret mode (by press "vc") from Normal mode.
So I create this patch to have it back.