Commit Graph

151 Commits

Author SHA1 Message Date
Corey Johnson
226fb9e26e Moving event handling out of editor into window 2011-09-26 11:10:27 -07:00
Corey Johnson
1b4f371873 jscocoa, your weird message calling kills me. 2011-09-23 16:42:06 -07:00
Corey Johnson
5c54dd77c9 pane adds itself. 2011-09-23 16:41:41 -07:00
Corey Johnson
d8d98ca7e3 first pass at key bindings. just replicating keymaster for now. 2011-09-23 15:57:18 -07:00
Corey Johnson
dda91e39f2 editor will be a plugin, for now force keybinding
creation
2011-09-22 17:29:03 -07:00
Corey Johnson
3b5984c3f7 better error message 2011-09-22 17:05:24 -07:00
Corey Johnson
38f265f33f ALWAYS BE PATHING 2011-09-22 16:48:39 -07:00
Corey Johnson
290f519d76 Added 'load' method for plugins.
This is called after all the plugins have been
created.
2011-09-22 11:08:53 -07:00
Corey Johnson
99d3d9b3e2 So we don't screw up and press cmd-ctrl-r from
the console.

Once we get keybindings working, we won't have to worry about this causing problems.
2011-09-21 17:40:57 -07:00
Corey Johnson
91b7779179 More methods from common.js fs. 2011-09-21 17:40:04 -07:00
Corey Johnson
2ea875e700 require cleanup 2011-09-21 17:38:52 -07:00
Corey Johnson
620538a6b5 Plugin does a lot of things we thought Pane would. 2011-09-21 17:38:14 -07:00
Corey Johnson
012fc4826d Editor is starting to act more like a plugin.
Eventually it will be a plugin.
2011-09-21 17:37:39 -07:00
Corey Johnson
24073baa44 catch and report plugin errors 2011-09-21 17:37:03 -07:00
Corey Johnson
47b8d0dc02 making plugins unique to windows and 'classy'.
This checkin breaks everything BTW.
2011-09-21 14:26:44 -07:00
Corey Johnson
5270f97dcd Plugins love this guy 2011-09-21 14:24:52 -07:00
Corey Johnson
4cb47ab96f window loads plugins. prepping for plugin refactor 2011-09-20 16:54:50 -07:00
Corey Johnson
5abe161f7d Window is no longer a Pane 2011-09-20 15:26:17 -07:00
Corey Johnson
664fa5b06f bindkey takes a scope, keycap is a method 2011-09-20 15:25:36 -07:00
Corey Johnson
9eee6ad9ad Some app errors 2011-09-20 13:44:42 -07:00
Corey Johnson
1d562dce58 dumb error 2011-09-20 13:44:13 -07:00
Corey Johnson
e60fa30daa Made App a fake singleton. It only has class methods and variables. 2011-09-20 11:06:34 -07:00
Corey Johnson
c22587ab66 Moving UI stuff to Chrome.
I don't like the name Chrome, looking to rename it.
2011-09-20 11:05:19 -07:00
Corey Johnson
35ce4b3bf8 Added some warnings to require. 2011-09-20 11:02:11 -07:00
Corey Johnson
45b1f0ef64 pane storage is super simple now. 2011-09-19 11:12:18 -07:00
Corey Johnson
64dafdfad9 A simple storage scheme. 2011-09-16 16:01:13 -07:00
Corey Johnson
39080d0132 not ready yet 2011-09-16 15:35:59 -07:00
Corey Johnson
6cb88dc7e4 i want to reload vendor too 2011-09-16 14:58:18 -07:00
Corey Johnson
cc3abee58a mergin 2011-09-16 09:31:46 -07:00
Corey Johnson
7347f4c8a4 persistence, but it's too magic 2011-09-15 16:53:18 -07:00
Corey Johnson
8011e2fc7c open project first
HACK: need to make this flow cleaner
2011-09-15 16:52:23 -07:00
Corey Johnson
5a6e12234f keep these on one line? What should the rule be? 2011-09-15 16:47:55 -07:00
Corey Johnson
26901718dd keep these on one line? What should the rule be? 2011-09-15 08:57:57 -07:00
Chris Wanstrath
d50b9722a0 commas, lolz 2011-09-15 00:14:58 -07:00
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