Commit Graph

14143 Commits

Author SHA1 Message Date
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
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