mirror of
https://github.com/atom/atom.git
synced 2026-02-08 05:35:04 -05:00
Add copy project path command to text-editor
This commit is contained in:
@@ -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)
|
||||
|
||||
###
|
||||
|
||||
Reference in New Issue
Block a user