Open File from selection

Created by calebmeyer
Last updated about 8 months ago
# note: this doesn't do relative paths, you'd need to use editor.getPath and some manipulation to do that
atom.commands.add 'atom-text-editor',
  'editor:open-selected': (event) ->
    editor = atom.workspace.getActiveTextEditor()
    atom.workspace.open(editor.getSelectedText())

Basic idea for Robert Poor on slack