mirror of
https://github.com/atom/atom.git
synced 2026-02-14 16:45:14 -05:00
Add EditSession.getLongTitle
This commit is contained in:
committed by
probablycorey
parent
3456b2db3c
commit
21990cf986
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user