Commit Graph

117 Commits

Author SHA1 Message Date
Corey Johnson
7765fd06a8 Added exists 2011-09-14 11:41:04 -07:00
Corey Johnson
5f44dad5c2 When everything is done, send a loaded message.
Or maybe plugins should have a `appDidLoad` method
or something.
2011-09-14 11:40:49 -07:00
Corey Johnson
ef3fc1d278 Tab tells editor to close file. Tab is then
notified about closer.

This is in prep for reopening files on app 
relaunch.
2011-09-13 16:44:30 -07:00
Corey Johnson
4f55f4d4a0 Added toggle to Pane. Makes more sense there.
Also made pane be more jquery'y
2011-09-12 17:50:17 -07:00
Corey Johnson
e5efaffdb4 On boot, open up the most recently opened file/dir 2011-09-12 12:25:25 -07:00
Corey Johnson
a65d081855 Store the last opened path.
Just throwing stuff into localStorage seems 
sloppy. Maybe we just need some guidelines to
follow.
2011-09-12 12:24:50 -07:00
Chris Wanstrath
0b66c5483b open and save files as utf-8. fixes #23 2011-09-11 02:41:19 -07:00
Chris Wanstrath
37c6e4f64e since we're being opionated 2011-09-10 00:09:50 -07:00
Chris Wanstrath
aaf2e63dc5 you bastard. how do you not use Cmd-`? 2011-09-09 23:34:51 -07:00
Corey Johnson
d501e85a46 Remove trailing whitespace on save. Fixes #18. 2011-09-09 16:36:10 -07:00
Corey Johnson
89855a6da2 showing invisibles by default. 2011-09-09 15:44:36 -07:00
Corey Johnson
bc616d05e7 Got rid of the untitled tab.
It still gives you an empty editor document. I'd
like to get rid of this too and maybe show a
"recently opened" window.
2011-09-09 14:19:56 -07:00
Corey Johnson
475d199052 I don't think we need this anymore? It works for
me with the default timeout of 1.
2011-09-09 11:50:52 -07:00
Corey Johnson
108f0ab142 @defunkt put that in your ~/.atomicity file, it's
erring in my console!
2011-09-08 20:09:40 -07:00
Chris Wanstrath
c69ac0f49a require() loads js in strict mode
Main advantage: variables won't accidentally
leak into the global scope.

$ cat gg.js
bad = true

https://img.skitch.com/20110909-kry3pm4ask5qhj5rg43yb37tci.png
2011-09-08 18:04:23 -07:00
Chris Wanstrath
e5ccae5bd9 keymap values can be functions 2011-09-08 02:21:29 -07:00
Chris Wanstrath
6ec348068c use require.paths when resolving 2011-09-08 01:59:20 -07:00
Chris Wanstrath
22abf6497c make expandPath fit in 2011-09-08 01:59:20 -07:00
Chris Wanstrath
f293966a70 Command-Ctrl-T to run Atomicity's tests. Output is in the console. 2011-09-08 01:59:17 -07:00
Chris Wanstrath
e5a5c422a4 subtle indentation error 2011-09-08 01:00:01 -07:00
Chris Wanstrath
7ea2efaf06 delete the editor session when closing a tab 2011-09-08 00:41:41 -07:00
Chris Wanstrath
c3dc1cc3eb detect indentation, tabs vs spaces 2011-09-08 00:37:40 -07:00
Chris Wanstrath
10d02d966b disable ace workers 2011-09-08 00:29:07 -07:00
Corey Johnson
df7a81c1ec don't override cmd-q 2011-09-06 11:59:15 -07:00
Chris Wanstrath
7fd6fafb7f move handleKeyEvent into keybinder.coffee 2011-09-06 00:10:44 -07:00
Chris Wanstrath
5c7c97f3df Merge remote-tracking branch 'origin/key-bindings'
Conflicts:
	src/startup.coffee
2011-09-06 00:09:05 -07:00
Chris Wanstrath
3b8bf900a4 add @code() and @switchToSession() to Editor 2011-09-05 23:47:33 -07:00
Chris Wanstrath
36895ec5a3 editor managers a pool of edit sessions 2011-09-05 23:47:07 -07:00
Corey Johnson
18df46bbde eat the key bindings we want. 2011-09-05 10:27:07 -07:00
Chris Wanstrath
ad9028e803 cancel open 2011-09-04 19:29:43 -07:00
Chris Wanstrath
9413af5816 those guys too 2011-09-04 19:23:53 -07:00
Chris Wanstrath
1d3b31849b use keymaster instead of ace for keybindings.
keybindings now work anywhere in the window, not just when ace has
focus!
2011-09-04 19:23:52 -07:00
Chris Wanstrath
9d200700bc can't read file 2011-09-04 19:23:52 -07:00
Chris Wanstrath
d45edcd5ff addPane takes a Pane. turn project and tab plugins into Panes 2011-09-04 19:23:52 -07:00
Chris Wanstrath
45d2bdc5fd move open, openURL, new, reload, & showConsole key commands into Window 2011-09-04 19:23:52 -07:00
Chris Wanstrath
793946faf8 panes have keymaps. good or bad? 2011-09-04 19:23:52 -07:00
Chris Wanstrath
b9689679e5 Turn editor.coffee into an Editor class which subclasses Pane
This isn't great but I think it's a step in the right direction.
2011-09-04 19:23:52 -07:00
Chris Wanstrath
18b8e14134 kill unused document.coffee for now 2011-09-04 19:23:11 -07:00
Corey Johnson
819ec44e98 me too 2011-09-04 18:14:34 -07:00
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