Add copy project path command to text-editor

This commit is contained in:
Yuya Tanaka
2016-01-10 19:35:34 +09:00
parent db74f4a8f0
commit d4c8770176
2 changed files with 4 additions and 2 deletions

View File

@@ -666,8 +666,9 @@ class TextEditor extends Model
isPending: -> Boolean(@pending)
# Copies the current file path to the native clipboard.
copyPathToClipboard: ->
copyPathToClipboard: (relative = false) ->
if filePath = @getPath()
filePath = atom.project.relativize(filePath) if relative
@clipboard.write(filePath)
###