Commit Graph

59 Commits

Author SHA1 Message Date
Corey Johnson
3c826ec898 Use 'pt' instead of 'px' for font sizes 2012-06-01 11:06:13 -07:00
Corey Johnson
130361fc1c Keybinding view is an extension 2012-05-31 15:54:40 -07:00
Corey Johnson
cbf5c5d16c ctrl-? brings up keybindings for focused view.
it is very ugly.
2012-05-29 17:59:00 -07:00
Corey Johnson
893564945e Add rootView.activeKeybindings().
This will return all active keybindings available for the focused element.
2012-05-29 15:46:38 -07:00
Corey Johnson
399fc71b3c Make Atom SpacePen view's default to empty object (where needed) 2012-05-16 10:35:50 -07:00
Nathan Sobo
5b7ea95a11 Meta+ and meta- change the editor font size 2012-05-09 10:57:25 -06:00
Nathan Sobo
8b1ac28b89 Editor font sizes can be adjusted with RootView.proto.setFontSize 2012-05-09 08:34:08 -06:00
Corey Johnson
77baa7be09 Extract command panel as an extension 2012-05-08 13:49:06 -07:00
Corey Johnson
cb45675f14 Remove @path var from project 2012-05-08 13:02:14 -07:00
Nathan Sobo
648649d472 Merge branch 'master' of github.com:github/atom
Conflicts:
	spec/app/root-view-spec.coffee
	src/app/root-view.coffee
2012-05-07 19:38:01 -06:00
Nathan Sobo
31163f1d8c Convert FileFinder to a proper extension and remove references from RootView code 2012-05-07 19:30:07 -06:00
Corey Johnson
e4125448ec Make RootView.initialize unaware of deserialization.
When RootView is created without a pathToOpen, no editor is created.
2012-05-07 17:51:08 -07:00
Nathan Sobo
eeb28111f3 Double clicking a file changes focus to editor. Double clicking a directory toggles expansion. Single clicking doesn't ever change focus away from tree view. 2012-05-07 14:55:33 -06:00
Corey Johnson & Nathan Sobo
28ff26e845 Merge branch 'master' into statusbar
Conflicts:
	src/app/editor.coffee
	src/app/project.coffee
	src/app/root-view.coffee
2012-05-04 11:41:13 -06:00
Corey Johnson
670717ca3b RootView deactivates extensions when it is deactivated 2012-05-03 17:31:37 -07:00
Corey Johnson & Nathan Sobo
f3c89240a3 Rename RootView.registerExtension() to RootView.activateExtension() 2012-05-03 17:13:09 -07:00
Corey Johnson & Nathan Sobo
5864fa5145 Add RootView.registerExtension() 2012-05-02 15:25:57 -07:00
Corey Johnson
d04be05e95 Root view sets project's path using project.setPath(path) 2012-05-01 10:00:53 -07:00
Corey Johnson
28f39cbdab When project's constructor is given a file as its path, it sets its path to the parent directory of the given file 2012-05-01 09:18:22 -07:00
Corey Johnson & Nathan Sobo
466ad3cfc1 Add #horizontal flexbox container to RootView. TreeView places itself inside it. 2012-04-27 10:24:30 -06:00
Nathan Sobo
3f9ab11469 Merge branch 'master' into kq 2012-04-26 11:38:22 -06:00
Nathan Sobo
64a91148cd Upgrade to SpacePen 3b85ccfb0ec43, which replace 'attach' events with 'afterAttach' hooks 2012-04-26 11:37:56 -06:00
Corey Johnson & Nathan Sobo
3f97d98ef9 Start on directory change events 2012-04-25 11:33:44 -06:00
Nathan Sobo
590352b079 RootView emits an 'active-editor-path-change' event whenever the path of the active editor changes for any reason (buffer path change, new buffer opened, focus changes) 2012-04-24 12:50:00 -06:00
Nathan Sobo
3d382955cc When focus changes to a different editor, highlight its open file in the TreeView
Trigger 'active-editor-path-change' event whenever active editor changes or the path of the active editor changes. Rename 'buffer-path-change' to 'editor-path-change' to emphasize that it's the path open in an *editor* that's changing.
2012-04-24 08:51:11 -06:00
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
77ba75a4c6 Trying to position at the bottom. We need a better flexbox impl 2012-04-17 13:41:31 -06:00
Nathan Sobo
77ec2bbb08 Add Project.proto.relativize method to make an absolute path relative to the project root 2012-04-17 12:08:27 -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