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

Expose methods to alter cursor appearance via extensions API #561

Closed
bgourlie opened this issue Nov 24, 2015 · 4 comments
Closed

Expose methods to alter cursor appearance via extensions API #561

bgourlie opened this issue Nov 24, 2015 · 4 comments
Assignees
Labels
api feature-request Request for new features or functionality verified Verification succeeded VIM VIM issue
Milestone

Comments

@bgourlie
Copy link

I would like to be able to change the cursor appearance via the extensions API. My particular use-case is to implement vim-like modal text editing, and would like to be able to style a block cursor for normal mode.

@jrieken
Copy link
Member

jrieken commented Nov 25, 2015

There is editor.selection which you can assign an empty selection to.

@jrieken jrieken closed this as completed Nov 25, 2015
@jrieken
Copy link
Member

jrieken commented Nov 25, 2015

Oh, appearance..

@jrieken jrieken reopened this Nov 25, 2015
@egamma egamma mentioned this issue Dec 3, 2015
34 tasks
@egamma egamma modified the milestone: Backlog Dec 10, 2015
@alexdima alexdima added feature-request Request for new features or functionality api VIM VIM issue labels Dec 10, 2015
@egamma egamma mentioned this issue Jan 6, 2016
59 tasks
@ghost
Copy link

ghost commented Feb 11, 2016

Update: vscode now has an editor.cursorStyle setting that allows a block value. (Implemented in PR #1586.) The issue as written is still valid, since (AFAICS) there's no way to control it from the extensions API.

@alexdima
Copy link
Member

@bgourlie @ghost
This is now done on master, three styles (line, block and underline) can be set via TextEditor.options. Please also see https://github.com/alexandrudima/vscode-vim if you are authoring a vim emulation extension for VS Code

@alexdima alexdima added the verified Verification succeeded label Mar 21, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api feature-request Request for new features or functionality verified Verification succeeded VIM VIM issue
Projects
None yet
Development

No branches or pull requests

5 participants
@egamma @bgourlie @jrieken @alexdima and others