From 5e19f70cbcd04120ec39a96dd9dee9f1d72ad768 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Sun, 6 Nov 2011 20:40:57 -0800 Subject: [PATCH] window title = last path segment --- src/window.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/window.coffee b/src/window.coffee index 6282f85ba..d6bcda937 100644 --- a/src/window.coffee +++ b/src/window.coffee @@ -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