Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix forward word/vimword behaviors in caret mode #4312

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

Open
twio142 wants to merge 1 commit into philc:master
base: master
Choose a base branch
Loading
from twio142:patch-1

Conversation

@twio142
Copy link
Contributor

@twio142 twio142 commented Sep 24, 2023

No description provided.

Copy link
Owner

philc commented Sep 26, 2023
edited
Loading

Hey @twio142, I tried this PR and it does fix the issue where "w" does not move forward a word in caret mode. I haven't looked at the code in mode_visual.js -- it's in need of cleanup. From what I can tell from your diff, it looks like "move forward" was simply never implemented? Why does move backward work without the need to branch on alterMethod=="move"?

Copy link
Contributor Author

twio142 commented Sep 26, 2023

@philc

Why does move backward work without the need to branch on alterMethod=="move"?

That's because for forward moving was this character-by-character strategy implemented.

While for backward moving it's just using this universal method: this.selection.modify(this.alterMethod, direction, granularity);

Copy link

Just wondering if this could be merged at some point?

stelrin reacted with thumbs up emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /