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

WIP: Fixes gj and gk cursor issues. #1561

Closed
wants to merge 2 commits into from
Closed

Conversation

Chillee
Copy link
Member

@Chillee Chillee commented Apr 24, 2017

#1323 is a big issue for me. It makes it extraordinarily painful to use 'gj' full time instead of j, and makes #1552 less ideal for everybody.

VSCode continues to refuse to provide good support for getting their "hidden" desiredColumn, so I handle it myself in a special case for "gj" and "gk". Make no mistake, this is definitely not the best way to handle this. However, the perfect is the enemy of the good, and this solution will allow us to make 'gj' and 'gk' usable.

I think it's a good design principle to optimize for the common use case, and a common use case for gj and gk is rebinding j and k to them and scrolling through files. This fixes it.

One idea I should try: Using a solution similar to my fold fix.

Integrating this PR also allows a workable solution (ehhh) #1552 to folds, which is the one of the biggest pain points towards adoption for VSCodeVim (in my opinion).

It's not perfect, but I believe it's good enough. (Worse is Better anyone?)

@johnfn
Copy link
Member

johnfn commented Apr 24, 2017

Can't review this quite yet - just wanted to send a big thanks for all your recent PRs. They are massively appreciated!

@Chillee Chillee changed the title Fixes gj and gk cursor issues. WIP Fixes gj and gk cursor issues. Apr 28, 2017
@Chillee Chillee changed the title WIP Fixes gj and gk cursor issues. Fixes gj and gk cursor issues. May 16, 2017
@Chillee Chillee changed the title Fixes gj and gk cursor issues. WIP: Fixes gj and gk cursor issues. May 16, 2017
@Chillee
Copy link
Member Author

Chillee commented May 16, 2017

Closed in favor of #1552 .

@Chillee Chillee closed this May 16, 2017
@Chillee Chillee deleted the gjgkfork branch May 23, 2017 04:57
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 this pull request may close these issues.

3 participants