kill Process, split into fs module and system module

This commit is contained in:
Chris Wanstrath
2011-09-03 23:18:52 -07:00
parent 8b0b0e4ea3
commit 2b1e04264c
6 changed files with 21 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
$ = require 'jquery'
_ = require 'underscore'
{Chrome, Process} = require 'osx'
{Chrome} = require 'osx'
File = require 'fs'
Editor = require 'editor'
@@ -14,7 +14,7 @@ exports.init = ->
@toggle()
Editor.ace.on 'open', =>
@reload() if @dir? and Process.cwd() isnt @dir
@reload() if @dir? and File.workingDirectory() isnt @dir
$('#project .cwd').live 'click', (event) =>
Editor.open @dir.replace _.last(@dir.split '/'), ''
@@ -36,7 +36,7 @@ exports.toggle = ->
@showing = not @showing
exports.reload = ->
@dir = dir = Process.cwd()
@dir = dir = File.workingDirectory()
$('#project .cwd').text _.last dir.split '/'
$('#project li').remove()

View File

@@ -1,7 +1,7 @@
$ = require 'jquery'
_ = require 'underscore'
{Chrome, Process} = require 'osx'
{Chrome} = require 'osx'
File = require 'fs'
{bindKey} = require 'editor'