-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Use vscode built in support for block cursors #245
Conversation
@Paxxi sweet! there's a minor tslint error that's making the build fail
|
Ahh right, forgot to run tslint, will fix tomorrow |
Fixed the tslint error and rewrote it a bit to make it a bit shorter |
|
||
modeHandler.setCurrentModeByName(ModeName.Insert); | ||
assert.equal(vscode.window.activeTextEditor.options.cursorStyle, vscode.TextEditorCursorStyle.Line); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add another case here for Visual mode?
Ok added the test case. Note for the future, I can be sloppy sometimes in PR's so don't hesitate to "nitpick", I expect it 😄 |
@Paxxi one more tiny thing, can you merge the latest changes from |
done |
@Paxxi unfortunately this makes visual line mode confusing :( In visual line mode, the block cursor is often in the middle of the linewise selection (Vim will always select the entire line the cursor is in, no matter if it's at the beginning or the end). Can you find any way to fix this? Otherwise we'll have to revert, which would be a shame because this cursor is really nice. |
I see the issue, will investigate and see how we can solve it |
Not sure if I will have time to investigate in the next few days so maybe revert this in case you want to do a release and we can give it another try once I figure it out |
Added some simple tests for this and moved it out of the hot path as it's something that only happens during mode changes.