activeWindow.project and project.paths array

This commit is contained in:
Chris Wanstrath
2011-09-15 00:35:46 -07:00
parent 34b85b1654
commit a001be87e4

View File

@@ -21,6 +21,8 @@ class Project extends Pane
@reload(File.workingDirectory())
@editor = activeWindow.document
activeWindow.project = this
@editor.ace.on 'open', ({filename}) =>
if File.isDirectory filename
@reload filename
@@ -93,6 +95,13 @@ class Project extends Pane
list
paths: ->
_paths = []
for dir in File.list @dir
continue if /\.git|Cocoa/.test dir
_paths.push File.listDirectoryTree dir
_.reject _.flatten(_paths), (dir) -> File.isDirectory dir
# HATE
# This needs to be replaced with a more generalized method like
# Atomicity.store or better yet, add it to Pane so each pane has it's