Commit Graph

21924 Commits

Author SHA1 Message Date
Corey Johnson
9ac72d7fba non-working version of autocomplete focusing 2012-04-17 17:37:20 -07:00
Corey Johnson
904c05660d Add move-down event to Autocomplete 2012-04-17 17:37:19 -07:00
Corey Johnson
f8fd7251e4 Add 'move-down' event to autocomplete 2012-04-17 17:37:19 -07:00
Corey Johnson
5e5c835aff 💄 2012-04-17 17:37:19 -07:00
Corey Johnson
d41ac6626f Autocomplete extends View 2012-04-17 17:37:19 -07:00
Corey Johnson
c96ac1638f 💄 2012-04-17 17:37:18 -07:00
Nathan Sobo
e4024e11e5 Add emacs-style bindings for selecting 2012-04-17 17:51:16 -06:00
Nathan Sobo
fe3420f614 Add StripTrailingWhitespace extension.
It's not on by default, and needs to be initialized from the init script.
2012-04-17 17:50:57 -06:00
Nathan Sobo
0a9e14a408 Buffers emit 'before-save' and 'after-save' events during save 2012-04-17 17:45:40 -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
012237678e Status bar renders current path and buffer position on initialization 2012-04-17 12:09:06 -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
a5a573d732 StatusBar.initialize appends a status bar view to every current and future editor pane 2012-04-17 11:37:01 -06:00
Corey Johnson
5b67feff54 Autocomplete will match on either side of selected text when completing words 2012-04-16 16:26:09 -07:00
Corey Johnson
e40040c573 Autocomplete creates selection over auto-completed text 2012-04-16 15:36:45 -07:00
Corey Johnson
eacb21ca1a Detach buffer change event listeners from Autocomplete when editor's buffer changes 2012-04-16 15:22:39 -07:00
Corey Johnson
c82ca5d1ee Store current buffer on Autocomplete 2012-04-16 15:15:43 -07:00
Corey Johnson
b61a14150e Very basic autocomplete working 2012-04-16 14:57:29 -07:00
Corey Johnson
5e2e550217 Renderer.expandBufferRangeToLineEnds and Renderer.expandScreenRangeToLineEnds use Range.fromObject 2012-04-16 14:57:01 -07:00
Corey Johnson
54f7212ad8 💄 2012-04-16 14:55:51 -07: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
Nathan Sobo
6c5b2a47ec Reset document.title after each spec to prevent test pollution 2012-04-13 15:11:33 -06:00
Nathan Sobo
c673c5114e Ensure that Editor.proto.serialize returns a copy of each edit session 2012-04-13 14:29:58 -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
1b2b1a324d Add a mock-based test for Editor.prototype.split and ensure it doesn't raise exceptions when not in a pane 2012-04-13 11:40:29 -06:00
Corey Johnson & Nathan Sobo
54a15856bb Use Editor.deserialize in Editor.prototype.copy and add a spec for it 2012-04-13 11:39:57 -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
4e43f0e596 Rename PaneDivision to PaneGrid 2012-04-13 09:26:03 -07:00
Corey Johnson
e0e40e327b PaneColumn and PaneRow inherit from PaneDivision. Yes, I hate the name PaneDivision too. 2012-04-12 21:25:24 -07: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
08b661e3bf Fix panes CSS to apply borders to nested rows / columns again 2012-04-12 15:59:55 -06: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
Nathan Sobo
6c572e1a33 Delete unused PanesContainer 2012-04-12 14:59:46 -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
d1d0bd766b Forgot to refresh gitx 2012-04-11 18:39:40 -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