-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
Implement configurable cursor style #1586
Conversation
Hi @markrendle, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution! TTYL, MSBOT; |
@markrendle, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR. |
Would it be possible to add a thin line (1px) style? PuTTY has an |
@glen-84 I don't see why not, it's just a matter of getting the CSS right and adding in names for it. |
block/block-thin/block-hollow/block-outline:? {
background: transparent;
border: 1px solid;
box-sizing: border-box;
position: absolute;
width: 1ch;
cursor: text;
} block/block-filled:? {
position: absolute;
width: 1ch;
cursor: text;
} line/line-thin/line-narrow:? {
position: absolute;
width: 1px;
cursor: text;
} line/line-thick/line-accessible:? {
position: absolute;
width: 2px;
cursor: text;
} underline/underline-thin:? {
background: transparent;
border-bottom: 1px solid;
box-sizing: border-box;
position: absolute;
width: 1ch;
cursor: text;
} underline/underline-thick/underline-accessible:? {
background: transparent;
border-bottom: 2px solid;
box-sizing: border-box;
position: absolute;
width: 1ch;
cursor: text;
} I'm not too sure about the names, maybe: block-filled ... I'll leave this to the developers. =) |
@glen-84 Good work! I'll get those added. Thanks :) |
Let's tackle the other suggested styles in a new issue. I have merged this change in with some edits to simplify it in 82f2a8a |
Let's track the other styles in #1929 |
@markrendle Sorry this appears in github as not merged, I had to manually merge it due to some bad commits in your PR, but your commit did make it in. |
@alexandrudima That's cool, I'm just happy to have contributed something to the project. |
Was looking for this and still have 2 issues:
|
With acknowledgements to @Protectator and his configurable blinking (#500), I've tried to do something similar to allow the cursor style (i.e. line or block, at present) to be configured.
Right now, the setting is configurable from editor.config, but with the right method somewhere(?) this could also be over-ridden by Vim mode plugins such as VsCodeVim to switch between cursor styles for Normal and Insert modes (see VSCodeVim/Vim#19 and #200).
Feedback on what I've done so far would be much appreciated.