Corey Johnson
b4944bbb46
missing args default to falsey, so dump them
2011-09-04 15:41:38 -07:00
Chris Wanstrath
e44414ae26
whoa
2011-09-04 14:23:48 -07:00
Chris Wanstrath
dd9f35d6b6
kill bootstrap - require.js is the only special case.
2011-09-04 14:21:57 -07:00
Chris Wanstrath
804b67f8df
osx.coffee is dead.
...
Split Chrome into App and Window, in app.coffee and window.coffee
2011-09-04 14:17:46 -07:00
Chris Wanstrath
de2ffdf25d
todo: testing
2011-09-04 13:46:56 -07:00
Chris Wanstrath
38e1065ae4
probably not true
2011-09-04 13:36:54 -07:00
Chris Wanstrath
b0c09aab18
need jscocoa in fs.coffee
2011-09-04 00:36:51 -07:00
Chris Wanstrath
67419b9b4d
isDirectory
2011-09-04 00:36:51 -07:00
Chris Wanstrath
e5103c7bd6
fix fs module
2011-09-04 00:36:51 -07:00
Chris Wanstrath
f719ce3053
__defines should fit in
2011-09-04 00:36:51 -07:00
Chris Wanstrath
63f84475eb
old exports
2011-09-04 00:36:51 -07:00
Chris Wanstrath
2b1e04264c
kill Process, split into fs module and system module
2011-09-04 00:36:51 -07:00
Chris Wanstrath
8b0b0e4ea3
move Dir into fs.coffee and commonjs it
2011-09-04 00:36:50 -07:00
Chris Wanstrath
884686f55f
move File module into fs.coffee. rename File.expand to File.absolute
...
absolute() is the commonjs form of expand()
2011-09-04 00:36:50 -07:00
Corey Johnson
6e73a8a442
clean up inspector creator
2011-09-03 10:38:15 -07:00
Chris Wanstrath
93add06d5f
implement ../ and ./ require() prefixes
2011-09-02 19:49:35 -07:00
Chris Wanstrath
c6d0df42e3
__filename global - name of the file being require()'d
2011-09-02 19:49:30 -07:00
Corey Johnson
db24c17d22
we only need the setTimeout on the first window load. must be some magic caching going on somewhere.
2011-09-02 19:38:57 -07:00
Corey Johnson
0fcbd5a306
more coffeescriptish, i think
2011-09-02 19:37:50 -07:00
Corey Johnson
7309d86bfb
these only need a tiny bit of timeout
2011-09-02 19:28:19 -07:00
Corey Johnson
4b66101755
just adding the editor pane statically
2011-09-02 19:28:05 -07:00
Corey Johnson
6d41492fd7
it's important to test your code, corey
2011-09-02 18:08:37 -07:00
Corey Johnson
b7f562dd32
Whenever a pane is added or removed, the editorUI is refreshed.
2011-09-02 18:01:39 -07:00
Corey Johnson
23e4be9f7d
define takes an optional filename. This lets us grab the 'temp' object we set requires to when there are circular references.
...
Is this crazy, or does this make sense.
2011-09-02 18:01:39 -07:00
Corey Johnson
5d758bf358
added a resize editor method
2011-09-02 18:01:39 -07:00
Chris Wanstrath
56245f8ecc
kill me now
2011-08-30 01:39:23 -07:00
Chris Wanstrath
10b6e50b11
modes plugin
2011-08-30 01:39:21 -07:00
Chris Wanstrath
23fc7223b3
export ace, emit 'save' and 'open' events
2011-08-30 01:14:35 -07:00
Chris Wanstrath
76ee406ae8
jscocoa nsstrings aren't js strings =/
2011-08-30 01:14:35 -07:00
Chris Wanstrath
1cd9f98478
web console is where it's at
...
(this also fixes the reported source of a console.log
in the web inspector)
2011-08-30 01:14:35 -07:00
Chris Wanstrath
e1714c72e7
we have better debugging now, thx
2011-08-30 01:12:26 -07:00
Chris Wanstrath
c1faebd044
Social coding.
2011-08-30 01:12:26 -07:00
Chris Wanstrath
918ee8e15e
Removing any parens we're not forced to use. Lean into it.
2011-08-30 01:12:24 -07:00
Chris Wanstrath
5770b38c5d
we still use open()
2011-08-29 22:49:51 -07:00
Corey Johnson
01ed2ce204
export 'open' explicitly pass in the file path to open.
2011-08-29 20:37:18 -07:00
Corey Johnson
bbae26312c
Helper for reloading everything.
...
Probably should put in my .atomicity dir but I am social coding.
2011-08-29 20:36:29 -07:00
Corey Johnson
0d045b76c8
keep the logs clean corey
2011-08-29 17:08:59 -07:00
Corey Johnson
8392019108
you can open directories
...
(we should open directories in new windows, but baby steps)
2011-08-29 17:05:07 -07:00
Corey Johnson
228af89b0b
derp
2011-08-29 17:02:49 -07:00
Corey Johnson
88d157178b
jscocoa.js holds a subset of the methods from jscocoa's class.js
2011-08-29 17:02:41 -07:00
Corey Johnson
21f3584924
get in there process
2011-08-29 17:01:38 -07:00
Corey Johnson
27759ac812
Display console with cmd-ctrl-k. how do you close the console? You can't yet.
...
http://www.opensource.apple.com/source/WebKit/WebKit-6531.9/mac/WebInspector/
2011-08-29 15:57:13 -07:00
Chris Wanstrath
faeb8e3661
require() takes a callback
2011-08-28 16:21:52 -07:00
Chris Wanstrath
c57a8d8112
use Array.prototype.some where corey wanted to use _.detect
2011-08-28 16:21:45 -07:00
Chris Wanstrath
76098d54ae
not actually doing anything
2011-08-28 12:33:38 -07:00
Chris Wanstrath
01c4fd8978
gaaaaaaaaaaaaaah
2011-08-28 12:30:27 -07:00
Chris Wanstrath
868c0f08c2
hardcore require(). _ and $ are no longer global. ultimate victory.
...
CoffeeScript is still a global because it's used by require() to
open .coffee files. However, you can also load your own:
cs4 = require('my-coffee-script').CoffeeScript
🚬
2011-08-28 12:30:22 -07:00
Chris Wanstrath
cbfd4f9d80
Reloading! Add your paths here. Loading new code is as simple as Cmd+N.
2011-08-28 12:06:14 -07:00
Chris Wanstrath
bf01e562a3
add ~ support to require()
2011-08-28 12:00:35 -07:00
Chris Wanstrath
d79819f1aa
kill fullscreen code (it dont work)
2011-08-28 11:37:42 -07:00
Chris Wanstrath
0c7251fe1d
gross
2011-08-28 01:57:03 -07:00
Chris Wanstrath
aa47966aaa
add .coffee support to require()
2011-08-28 01:51:36 -07:00
Chris Wanstrath
e288902540
moving this hax to my personal ~/.atomicity for now
2011-08-28 01:47:58 -07:00
Chris Wanstrath
223e39a617
move ~/.atomicity loading into plugins.coffee
2011-08-28 01:47:36 -07:00
Chris Wanstrath
c31111099a
throw
2011-08-28 01:40:30 -07:00
Chris Wanstrath
455ddd459e
plugins.coffee
2011-08-28 01:40:30 -07:00
Chris Wanstrath
d7ef98de4f
don't let plugin break each other
2011-08-28 01:02:05 -07:00
Chris Wanstrath
d7661be2c1
buggin me
2011-08-28 00:56:20 -07:00
Chris Wanstrath
b2f2eb4cb7
default ext handler just reads the file's contents
2011-08-28 00:48:52 -07:00
Chris Wanstrath
ac773daff6
expose require.__modules for debugging
2011-08-28 00:43:19 -07:00
Chris Wanstrath
003776da8f
boom. errors with scripts and line numbers now show up in web inspector
...
https://img.skitch.com/20110828-rrfnqet2y2yrxq6witst6mrscx.png
fixes #3
atomicity modules that want to export an api must use define().
this mirrors ace's module definition style so it should fit in
fine.
$, _, and CoffeeScript are now global
scripts show up as loaded
before:
https://img.skitch.com/20110828-japr2cp4ucbr4a1kmp9degs3t.png
after:
https://img.skitch.com/20110828-txc782k47gn4rb67mhbujsgkw5.png
2011-08-28 00:26:38 -07:00
Chris Wanstrath
326f91bbef
use JSCocoa to eval require.js - shows up in web inspector!
2011-08-27 22:19:59 -07:00
Chris Wanstrath
bc1ffc632f
dont think we need that
2011-08-27 22:19:53 -07:00
Corey Johnson
9f51505287
Export bindKey
2011-08-27 21:51:25 -07:00
Corey Johnson
90aea78c65
Moving code to a better place
2011-08-27 21:51:14 -07:00
Corey Johnson
da04cec4a9
Got to use the same export object for it to work
2011-08-27 21:27:41 -07:00
Corey Johnson
550967ffe8
__modules contains the full expanded filename. Also, a temporary empty object is set for the files __module so we can have some circular references.
...
This is how commonJS says to do it (I think).
Fixes #4 .
2011-08-27 21:17:06 -07:00
Corey Johnson
57d81aea8d
i still love you web console!
2011-08-27 19:13:34 -07:00
Corey Johnson
55f40a1b3e
Expand paths of /* paths as well.
2011-08-27 18:19:00 -07:00
Corey Johnson
896a2c279b
cwd could change, limit search to plugin folder in bundle.
2011-08-27 18:18:11 -07:00
Chris Wanstrath
9d54c6cc20
cleaner, way more awesome, 100x better require()
2011-08-27 16:52:08 -07:00
Chris Wanstrath
9af38c8c53
plugins/ (not working yet)
2011-08-27 15:13:12 -07:00
Chris Wanstrath
cfdce83925
require() can take absolute paths
2011-08-27 15:01:31 -07:00
Chris Wanstrath
22649889fb
Dir.list only goes one level deep unless you ask it to go deeper
2011-08-27 14:46:36 -07:00
Chris Wanstrath
488697884f
add support for index.js to require()
2011-08-27 14:26:52 -07:00
Chris Wanstrath
64516b7242
File.expand './dir'
2011-08-27 14:14:59 -07:00
Chris Wanstrath
80c643b136
fuuu ui bug
2011-08-27 04:13:32 -07:00
Chris Wanstrath
409a77c485
gigantic ass reorg. let me know if this breaks.
2011-08-27 03:55:56 -07:00