mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
window title = last path segment
This commit is contained in:
@@ -6,6 +6,7 @@ Native = require 'native'
|
||||
Storage = require 'storage'
|
||||
|
||||
fs = require 'fs'
|
||||
_ = require 'underscore'
|
||||
|
||||
# This a weirdo file. We don't create a Window class, we just add stuff to
|
||||
# the DOM window.
|
||||
@@ -20,7 +21,7 @@ windowAdditions =
|
||||
KeyBinder.register "window", window
|
||||
|
||||
@path = atomController.path
|
||||
@setTitle @path
|
||||
@setTitle _.last @path.split '/'
|
||||
|
||||
@editor = if fs.isFile @path
|
||||
new Editor @path
|
||||
|
||||
Reference in New Issue
Block a user