mirror of
https://github.com/atom/atom.git
synced 2026-02-16 09:35:54 -05:00
Tildify path in title bar
This will use ~/ for the path to the home directory
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user