Merge pull request #9636 from DouweM/unique-title

Use unique text editor title in window and tab titles
This commit is contained in:
Max Brunsfeld
2015-11-20 16:55:38 -08:00
5 changed files with 58 additions and 39 deletions

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"