Tildify path in title bar

This will use ~/ for the path to the home directory
This commit is contained in:
Lukas Geiger
2016-08-31 20:47:09 +01:00
parent bb0b0857f4
commit 498a56a603
3 changed files with 12 additions and 8 deletions

View File

@@ -185,6 +185,8 @@ class Workspace extends Model
itemPath is projectPath or itemPath?.startsWith(projectPath + path.sep)
itemTitle ?= "untitled"
projectPath ?= projectPaths[0]
if projectPath?
projectPath = fs.tildify(projectPath)
titleParts = []
if item? and projectPath?