Use atom.commmands to dispatch event
Remove $ from atom-space-pen-views
getActiveEditor -> getActiveTextEditor