Nathan Sobo
7948543a5b
Template extends view with @viewProperties and calls initialize with attributes passed to build.
2011-12-27 18:36:54 -06:00
Corey Johnson
a0fc994dcb
addMenuItem can take a key pattern and set it as the key equivalent.
2011-12-27 16:30:48 -08:00
Nathan Sobo
08c1d33836
Switch Template to use builder. Wire outlets in Template.
2011-12-27 18:21:00 -06:00
Nathan Sobo
43ddb6b16a
Builder.toFragment creates outlet references on the fragment.
2011-12-27 17:43:05 -06:00
Nathan Sobo
bd79d9cd5d
Builder correctly generates void (self-closing) tags.
2011-12-27 16:43:28 -06:00
Nathan Sobo
21fb88141e
Builder can generate tags with attributes.
2011-12-27 16:16:35 -06:00
Nathan Sobo
b5a06c288e
Tags can take textual content.
2011-12-27 16:05:01 -06:00
Nathan Sobo
e570c5d454
Tags can take a function for their content.
2011-12-27 15:57:29 -06:00
Nathan Sobo
22167faf28
Add template/Builder. It generates basic tags.
2011-12-27 15:50:39 -06:00
Nathan Sobo
a48a1b24f4
Don't add the same menu item more than once.
2011-12-26 23:33:05 -06:00
Nathan Sobo
a010c8e3c6
Add window.bindMenuItem, which adds a menu item that invokes a given function.
...
Every menu item is created with a path (File > Save). The functions are stored in a hash from (menu item path -> action) on the window. When an AtomMenuItem is selected, it looks up the action on the current window based on its path.
2011-12-26 13:12:27 -06:00
Nathan Sobo
00bccdca96
Add partial implementation Native.addMenuItem.
...
It takes a path like "Menu 1 > Menu 2 > Item", and builds a series of submenus if needed along that path, then adds the final item at its terminus. Specs still need to be fleshed out further.
2011-12-23 16:45:04 -06:00
Nathan Sobo
ae4fdf8812
Add Native.resetMainMenu and call it in global afterEach
...
This method removes any AtomMenuItems that aren't marked as 'global'. It ignores menu items that aren't instances of our custom subclass. This is needed by specs to clear any menu items added during tests. It will also be needed when a window loses focus and we want to remove any non-global menus associated with the window.
2011-12-23 12:43:32 -06:00
Corey Johnson
d0ed5992ca
'meta-o' presents open dialog.
2011-12-20 10:41:31 -08:00
Corey Johnson
c679df770b
CoffeeScript compiler is slow. Take steps to avoid it.
2011-12-19 14:56:11 -08:00
Nathan Sobo
7dcb00f0ec
When saving buffer with no url, pop up 'save as' dialog.
...
Remove a lot of old code.
2011-12-16 16:31:02 -08:00
Corey Johnson & Nathan Sobo
a07daf26ca
Add Buffer.save
2011-12-15 15:59:32 -08:00
Corey Johnson & Nathan Sobo
ef774cb529
Coffeescript compile errors show file name.
2011-12-15 14:10:06 -08:00
Corey Johnson & Nathan Sobo
3aa46dbb6c
Ensures line numbers match up with required javascript.
2011-12-15 10:38:27 -08:00
Corey Johnson
fbb3efacf4
wii - gettings specs on App.open. Window closing not working quite right.
2011-12-14 16:24:30 -08:00
Corey Johnson
6ce5d32d83
Render the initial window layout programmatically with a template.
...
Remove layout html from the bootstrap page. Now the same page can be used for specs and the editor windows.
2011-12-14 11:26:14 -08:00
Corey Johnson
3d22a691f6
Doesn't crash on empty key bindings.
2011-12-14 09:46:27 -08:00
Corey Johnson & Nathan Sobo
607149a07d
Half-baked template experiment
2011-12-12 16:24:55 -08:00
Corey Johnson & Nathan Sobo
0dd6df1ab6
Empty test suite runs when you hit ctr-alt-cmd-s
2011-12-12 15:05:59 -08:00
Corey Johnson
6ea1766945
Nearly pure JS storage.
2011-11-29 15:22:59 -05:00
Corey Johnson
1c985bd899
Give JS access to the project dir so we can automate that shit.
2011-11-29 15:22:14 -05:00
Chris Wanstrath
4adf3b31d4
whitespace 💄
2011-11-25 23:25:56 -08:00
Chris Wanstrath
d50a29ffa9
ChildProcess.exec (with passing tests)
2011-11-25 21:49:31 -08:00
Chris Wanstrath
0c88c38101
💄
2011-11-25 21:09:09 -08:00
Chris Wanstrath
15005657bf
💄
2011-11-25 19:20:10 -08:00
Chris Wanstrath
6167637dd7
typo
2011-11-25 19:19:17 -08:00
Chris Wanstrath
c4746047cc
move ~/.atomicity stuff into "dotatom" extension
2011-11-25 18:18:16 -08:00
Corey Johnson
d01926885d
Some comments
2011-11-23 14:46:32 -05:00
Corey Johnson
90995ba0b2
Settings grab data from ~/.atomocity/settings.coffee
2011-11-23 14:42:38 -05:00
Corey Johnson
c76119020a
Better error message
2011-11-23 14:34:14 -05:00
Corey Johnson
f97eeb6e5d
key-bindings that do not load get a warning
2011-11-23 11:27:55 -05:00
Chris Wanstrath
e9bbc37547
automatically load extension/key-bindings.coffee
2011-11-21 22:11:11 -08:00
Corey Johnson
cd2fbb0ca7
Blarg, OSX key codesare not the same as web keycodes.
2011-11-14 17:48:34 -08:00
Chris Wanstrath
85656a26fd
add 'path' to stdlib. bad? not in commonjs but in node.js
2011-11-13 20:13:52 -08:00
Chris Wanstrath
e4df6edb59
simplify keybinder and make it better. fixes overriding
2011-11-12 20:33:06 -08:00
Chris Wanstrath
ce89e7b9df
kill the US-centric shiftedKeys map (fixes cmd-1)
2011-11-12 19:56:58 -08:00
Chris Wanstrath
8be8b6d593
80c
2011-11-12 19:47:58 -08:00
Chris Wanstrath
4e58261ec7
trade bubbleToApp option in for jQuery style data arrays
2011-11-12 02:36:24 -08:00
Chris Wanstrath
990d10bbe6
resource has a responder() method which keybinder calls
2011-11-12 02:05:16 -08:00
Chris Wanstrath
e3b5dede63
stop using DOM events. is this bad? i don't like e.details.
...
let me know if there is a good reason i'm missing to use DOM
events for our custom events.
i like this:
class Dingus
constructor: ->
atom.on 'window:load', @thing
thing: (window) =>
console.log 'hooray'
2011-11-12 00:18:27 -08:00
Chris Wanstrath
385f2c2031
extension loaded => running
2011-11-11 23:42:12 -08:00
Chris Wanstrath
f4f20b1d4a
only loaded extensions are in the responder chain
2011-11-11 23:31:31 -08:00
Chris Wanstrath
eb0e8b2ee3
print the error for more info
2011-11-11 22:35:22 -08:00
Corey Johnson
691f4c02d0
resource is the new document
2011-11-11 15:20:33 -08:00
Corey Johnson
fff3e19a50
Awesome shit.
2011-11-10 16:31:53 -08:00