Is there an editor.on 'focus' event


#1

is there an editor.on ‘focus’ event


#2

I don’t think so. I would use this code …

subs.add atom.workspace.observeActivePaneItem(item) =>
  if item is myEditor
    @myEditorIsFocused()