diff --git a/src/editor.coffee b/src/editor.coffee index 161a4455c..d995b2757 100644 --- a/src/editor.coffee +++ b/src/editor.coffee @@ -259,7 +259,8 @@ class Editor extends Model getLongTitle: -> if sessionPath = @getPath() fileName = path.basename(sessionPath) - directory = path.basename(path.dirname(sessionPath)) + directory = atom.project.relativize(path.dirname(sessionPath)) + directory = if directory.length > 0 then directory else path.basename(path.dirname(sessionPath)) "#{fileName} - #{directory}" else 'untitled'