Add EditSession.getLongTitle

This commit is contained in:
Nathan Sobo
2013-02-25 18:26:59 -07:00
committed by probablycorey
parent 3456b2db3c
commit 21990cf986
2 changed files with 19 additions and 4 deletions

View File

@@ -63,6 +63,14 @@ class EditSession
else
'untitled'
getLongTitle: ->
if path = @getPath()
fileName = fs.base(path)
directory = fs.base(fs.directory(path))
"#{fileName} - #{directory}"
else
'untitled'
destroy: ->
return if @destroyed
@destroyed = true