Use unique text editor title in window and tab titles

This commit is contained in:
Douwe Maan
2015-11-16 19:47:07 +01:00
parent a9bf2a73a5
commit 4bc4c6888f

View File

@@ -155,7 +155,7 @@ class Workspace extends Model
projectPaths = @project.getPaths() ? []
if item = @getActivePaneItem()
itemPath = item.getPath?()
itemTitle = item.getTitle?()
itemTitle = item.getLongTitle?() ? item.getTitle?()
projectPath = _.find projectPaths, (projectPath) ->
itemPath is projectPath or itemPath?.startsWith(projectPath + path.sep)
itemTitle ?= "untitled"