Corey Johnson & Nathan Sobo
5e1d7c774c
Serialized Editor state no longer contains Buffer objects
2012-04-18 15:57:58 -07:00
Nathan Sobo
e89a2255cf
Tear down editors and unsubscribe from buffers on window unload to prevent exceptions when typing after reload
2012-04-18 11:01:30 -06:00
Nathan Sobo
331984148f
Project.proto.open emits a 'new-buffer' event if a new buffer is created
...
RootView.proto.open always uses Project's open method now. RootView creates a project with no path when editing a new buffer, so there's always a project.
2012-04-17 17:15:19 -06:00
Nathan Sobo
07acf0817e
When opening a file, don't also create an edit session or an empty buffer
...
Also: RootView.proto.activeEditor no longer constructs an editor. To open an empty buffer, call RootView.proto.open with no path argument. It will build a new editor if needed.
2012-04-13 17:47:41 -06:00
Nathan Sobo
c899b5e827
Build a Project if necessary upon saving a previously unsaved buffer
2012-04-13 15:46:22 -06:00
Nathan Sobo
08b4a86f85
Set top and left position of root pane to 0 in adjustPaneDimensions
2012-04-13 15:27:15 -06:00
Nathan Sobo
7e3abe4ff3
Set document.title to the project path when the last editor is closed
2012-04-13 15:22:15 -06:00
Nathan Sobo
9819030b7d
Set document.title to the project path even if there are no editors open + 💄
2012-04-13 15:14:18 -06:00
Corey Johnson & Nathan Sobo
65c624f2bf
Remove RootView.proto.editorRemoved. Transfer remaining logic to Editor.proto.remove
2012-04-13 14:22:45 -06:00
Corey Johnson & Nathan Sobo
57b205d508
When a Pane is removed, layout of #panes div is adjusted appropriately
2012-04-13 12:49:59 -06:00
Corey Johnson & Nathan Sobo
da53fa1ba3
Replace RootView.proto.addPane with Pane.proto.split method
2012-04-13 10:47:45 -06:00
Corey Johnson & Nathan Sobo
1779032df6
Move pane size adjustment code into Pane objects
2012-04-12 18:38:26 -07:00
Corey Johnson & Nathan Sobo
dac91d1f29
Editor and RootView have deserialize class method
2012-04-12 16:26:59 -07:00
Corey Johnson & Nathan Sobo
1bd93e5565
Factored out PaneRow and PaneColumn which have serialize and deserialize methods.
2012-04-12 16:21:09 -07:00
Nathan Sobo
d776755348
Focus the active editor when the file finder is closed
2012-04-12 15:56:41 -06:00
Nathan Sobo
8513e60903
Editor saves all edit sessions when window is refreshed
2012-04-12 15:46:44 -06:00
Corey Johnson & Nathan Sobo
3b7d7205f6
Move find-in-file event and specs to command panel
2012-04-12 14:55:47 -06:00
Corey Johnson & Nathan Sobo
877b4dc336
RootView constructor can be called with serialized view state data
...
Move the saving of serialized root view data to window.coffee. The window.startup method looks for window state on the atom object and instantiates the root view with that if it is present.
2012-04-12 14:47:51 -06:00
Corey Johnson & Nathan Sobo
416a15e3af
Editors in #panes are always contained by .pane wrappers
...
This prepares us to refactor the split view and editor state code into Column, Row, and Pane objects.
2012-04-11 18:37:22 -06:00
Corey Johnson & Nathan Sobo
8a4b5b13bb
Don't close the window when the last editor is closed. Focus the root view instead.
2012-04-11 17:42:02 -06:00
Nathan Sobo
ceaad1798b
Remove @editors array from RootView
2012-04-11 17:18:06 -06:00
Nathan Sobo
75754fe62e
Merge branch 'master' of github.com:github/atom
2012-04-11 14:59:03 -06:00
Nathan Sobo
535fba1af8
Previously focused editor is re-focused on refresh
...
The isFocused property has now been added to editor state. When an editor is attached to the dom, it focuses itself automatically if and only if the @isFocused property is true. The @isFocused property gets assigned when the editor is constructed by the root view with its previous state.
2012-04-11 14:58:51 -06:00
Corey Johnson & Nathan Sobo
cdc4da2f7d
💄 (this was added so the function could be one line instead of two)
2012-04-11 13:44:07 -07:00
Nathan Sobo
3c53f20aad
Split panes arrangements and editors are restored after refresh
2012-04-11 13:17:12 -06:00
Nathan Sobo
284f982e2c
Call adjustSplitPanes after setting window state
2012-04-11 12:59:29 -06:00
Nathan Sobo
56e98aece5
Add window state getter and setter to RootView
...
These methods will be used to save and restore split views and editors on a refresh.
2012-04-10 19:30:44 -06:00
Nathan Sobo
ae5d64f06d
Change Editor.proto.split method to use new RootView.proto.addPane method.
...
RootView.proto.addPane takes a view to add, a sibling to add it next to, an axis along which to add (row or column), and a side (before or after)
2012-04-10 19:27:50 -06:00
Nathan Sobo
447b0598f9
Replace EditSession with dumb editor state hash, which can be supplied on editor construction.
2012-04-10 17:35:49 -06:00
Nathan Sobo
d5b93a2333
💄
2012-04-10 13:04:54 -06:00
Corey Johnson
2e9bef04a9
A buffer with no path sets document.title to 'untitled'
2012-04-04 11:10:20 -07:00
Corey Johnson
1efb712fd3
Rename App.coffee to Atom.coffee. This also required moving src/atom,spec/atom to src/app,spec/app
2012-04-03 10:33:24 -07:00