'atom-text-editor':
'ctrl-shift-a': 'jaceklaskowski:copy-file-name'
path = require 'path'
atom.commands.add 'atom-text-editor', 'jaceklaskowski:copy-file-name', ->
return unless editor = atom.workspace.getActiveTextEditor()
selection = editor.getLastSelection()
atom.clipboard.write(atom.workspace.getActivePaneItem().getPath().split(path.sep).pop())