Commit Graph

1600 Commits

Author SHA1 Message Date
Corey Johnson
0efbd65a24 Add Buffer.characterIndexForPosition 2012-03-21 14:25:28 -07:00
Corey Johnson & Nathan Sobo
909337bc1c WIP: Start on CommandInterpreter and substitution 2012-03-21 14:59:49 -06:00
Nathan Sobo
a91c8098a3 Style the command palette with a ":" before the editor. 2012-03-20 20:35:00 -06:00
Nathan Sobo
fd82efa1b2 Un-F 2012-03-20 20:33:50 -06:00
Nathan Sobo
e5eedfb7c7 Meta-: toggles the command palette 2012-03-20 19:59:37 -06:00
Nathan Sobo
28a0f5961a Remove spec for addPane. Oops. 2012-03-20 18:55:10 -06:00
Nathan Sobo
263e8d326b Merge branch 'master' of github.com:github/atom 2012-03-20 18:39:56 -06:00
Nathan Sobo
66c444f167 Remove RootView.addPane method 2012-03-20 18:39:46 -06:00
Corey Johnson
e6b3dd7b43 If ~/.atom/atom.coffee doesn't exist, insert some default text. 2012-03-20 17:19:52 -07:00
Corey Johnson
5ba3952b8f Block $native.open until window is completely loaded. 2012-03-20 17:19:52 -07:00
Corey Johnson
eded1e30cf $native.open returns the window where the file was opened. 2012-03-20 17:19:52 -07:00
Corey Johnson
1a4627442f Atom.open returns the AtomController created 2012-03-20 17:19:52 -07:00
Corey Johnson
fc1b350efd Expose AtomController's context 2012-03-20 17:19:52 -07:00
Corey Johnson
081ec97747 Use dashes instead of camelCase for event names 2012-03-20 17:19:52 -07:00
Corey Johnson
890eb91cf1 Put config file in ~/.atom/atom.coffee 2012-03-20 17:19:52 -07:00
Corey Johnson
7924179c45 $native.write creates intermediate directories if they don't exists 2012-03-20 17:19:52 -07:00
Corey Johnson
0317dada8e meta-, opens user configuration file 2012-03-20 17:19:51 -07:00
Corey Johnson
ed36f7d440 Store user configuration file path in App.coffee 2012-03-20 17:19:51 -07:00
Corey Johnson
c65c4aa3c8 Rename global-keymap-spec to keymap-spec 2012-03-20 17:19:51 -07:00
Nathan Sobo
ec9b4ffcd1 Fix broken benchmarks suite. 2012-03-20 17:22:44 -06:00
Nathan Sobo
26c56b1906 Merge branch 'master' of github.com:github/atom 2012-03-20 17:11:44 -06:00
Nathan Sobo
50f11f1a4c Remove fixed editor subview from root view. 2012-03-20 16:55:33 -06:00
Nathan Sobo
8ea4b4eb72 File finder opens selected file in the most recent pane.
Only editors inside #root-view #panes are tracked as the most recent active editor. Otherwise the file finder tries to open the selected file in its own mini editor.
2012-03-20 15:51:22 -06:00
Nathan Sobo
965e66ffd4 Focus most-recently active editor pane when file finder closes. 2012-03-20 15:11:34 -06:00
Corey Johnson
6ae39f167b loads ~/.atom/index.coffee when window is loaded 2012-03-20 13:32:26 -07:00
Nathan Sobo
adf8d5df9d Un-f 2012-03-20 13:10:07 -06:00
Nathan Sobo
55efb65500 Merge branch 'master' of github.com:github/atom 2012-03-20 13:09:48 -06:00
Nathan Sobo
4748b4e09b Remove row/columns from split pane layout when they become empty.
This fixes layout issues when closing split panes.
2012-03-20 13:09:35 -06:00
Nathan Sobo
285c04ea62 WIP: Split panes can be closed with meta-w
Still some issues… view gets screwed up after closing panes in certain layout arrangements.
2012-03-20 12:29:47 -06:00
Corey Johnson
99e3074c25 Previously focused element regains focus when file finder is removed 2012-03-20 11:05:57 -07:00
Corey Johnson
cd17cb6de3 <escape> removes file finder 2012-03-20 10:31:03 -07:00
Nathan Sobo
e74f0e66ac Fix specs I broke with CSS changes. 2012-03-19 17:18:48 -06:00
Nathan Sobo
c0dd87665a Add a border and subtle inset shadow when panes are split. 2012-03-19 17:01:52 -06:00
Nathan Sobo
81e5a10ddd Perform vim-style editor pane splitting
Using percentage dimensions to absolutely position the panes on screen where they need to be located. Flexbox would have been nice, but unfortunately I could not work around what seem to be bugs (or at least major inconveniences) in its current implementation.
2012-03-19 16:48:13 -06:00
Nathan Sobo
9fab492f66 Fix horizontal split inside top-level vertical split. 2012-03-19 12:37:53 -06:00
Nathan Sobo
29d0e1fe3d Move all screen-splitting-related selectors to atom.css 2012-03-19 12:23:39 -06:00
Nathan Sobo
5b145f64c2 Add vertical splitting. Still some issues with some nested arrangements. 2012-03-19 12:15:37 -06:00
Nathan Sobo
c15f2b3c3d Nested flexbox layout that works (almost) in Chrome Canary but not current Atom 2012-03-19 12:14:09 -06:00
Nathan Sobo
509bac15b6 Cursor is colored / blinks on on focused editor pane 2012-03-19 09:31:03 -06:00
Corey Johnson & Nathan Sobo
1437858241 Implement split-left 2012-03-19 09:22:13 -06:00
Corey Johnson & Nathan Sobo
9bd6751a46 Don't move the cursor on buffer change unless the editor is focused
Add a boolean isFocused flag to editor that is assigned when the hidden input gains / loses focus. This makes it easier in specs because we can treat the editor as if its focused without having to add it to the DOM. It's also a bit more abstract.
2012-03-19 09:04:39 -06:00
Corey Johnson & Nathan Sobo
2903126047 When editor is split, set same cursor position on new editor and focus it. 2012-03-19 08:48:16 -06:00
Corey Johnson & Nathan Sobo
8add398e9c Merge branch 'master' of github.com:github/atom 2012-03-19 08:34:53 -06:00
Corey Johnson & Nathan Sobo
2e42df3401 WIP: alt-meta-right splits editor pane to the right 2012-03-19 08:34:37 -06:00
Corey Johnson & Nathan Sobo
f8b6bf0de6 Folds can end on the penultimate screen line of a wrapped buffer line 2012-03-16 16:26:31 -07:00
Corey Johnson & Nathan Sobo
4e8847289d 💄 2012-03-16 15:34:53 -07:00
Corey Johnson & Nathan Sobo
b31bef4ea0 When updating folds, don't modify the array over which we're iterating 2012-03-16 16:31:52 -06:00
Corey Johnson & Nathan Sobo
67d017f3f4 Fix bug where destroying a fold on last screen line of wrapped line caused an artifact. 2012-03-16 16:11:44 -06:00
Corey Johnson & Nathan Sobo
7336e8313c Folds can be created on the penultimate screen line of a wrapped buffer line 2012-03-16 14:35:07 -07:00
Corey Johnson & Nathan Sobo
3b46ce84e6 expandBufferRangeToLineEnds works for ranges that are folded on screen 2012-03-16 13:33:11 -07:00