How to set cursorBlinkPeriod in new react.js editor


#1

So, the new react-based editor is great, but it breaks my previous cursor blink period hack (see here).

It looks like this is the relevant chunk of code, but I’m not sure how to set this property in my config.cson.

Here’s what I tried (which didn’t work):

'editor':
  'cursorBlinkPeriod': 100

Any tips?


Blinking Cursor
#2

Doesn’t look like it’s exposed in the config - you can try a hack like this in your init script:

atom.workspaceView.eachEditorView (editorView) ->
    editorView.component.props.cursorBlinkPeriod = 100

This seems to work for me!


#3

Also worked for me, though I had to use devtools to bust some caches or something.


#4

This no longer works on Atom 1.0 :frowning:

Does anyone know if it is still possible to set the blink period of the cursor in Atom 1.0? I’d love to change it to be a little slower like Sublime Text’s.


#5

I created a package that does this: cursor-blink-interval


#6

Ah perfect!

With the blink rate set to 1200 and the pulsing-cursor package installed we have a nice relaxing Sublime style cursor.

Brilliant work!