Commit Graph

1763 Commits

Author SHA1 Message Date
Corey Johnson
2e9bef04a9 A buffer with no path sets document.title to 'untitled' 2012-04-04 11:10:20 -07:00
Nathan Sobo
8d05802290 Redesign commands around multiple selections
Every command returns an array of buffer ranges to select from its execute method. The composite command loops through each current selection with each command, then sets the new selection to the aggregated buffer ranges returned by all commands at that step.
2012-04-04 12:09:33 -06:00
Nathan Sobo
abff6cf387 Add spec for global substitution in multiple selections 2012-04-04 11:22:49 -06:00
Nathan Sobo
4abf41e173 Merge branch 'master' of github.com:github/atom 2012-04-04 11:09:55 -06:00
Nathan Sobo
8a4f6510c9 Lighten selections because they're hard to see against darker bg 2012-04-04 11:09:45 -06:00
Nathan Sobo
92cc23a9bb Substitutions work with multiple selections
The `execute` method on commands now has a second range parameter. The composite command loops through all selected ranges and calls execute on each subcommand for each range. Still need to update the `.` address to work with the new scheme.
2012-04-04 11:09:30 -06:00
Corey Johnson
7e22d47256 Close the dev-tools when reloading reduces memory leaks (by a lot) 2012-04-04 09:44:53 -07:00
Corey Johnson
5d90b902c3 Less noise 2012-04-04 09:15:24 -07:00
Corey Johnson
8667628623 Remove unused array 2012-04-04 08:44:36 -07:00
Corey Johnson
6dc4d9bb05 Don't let atom spec bind default keys again 2012-04-03 17:21:13 -07:00
Corey Johnson
37a9d88b48 Spec helper uses window's keymap 2012-04-03 17:20:48 -07:00
Corey Johnson
2465372bd4 Multi-cursor scrolling is based on the last created cursor 2012-04-03 16:34:21 -07:00
Corey Johnson
d016cc27d3 Move autoScrolling methods from cursor to editor
Scroll methods are now Editor.scrollTo(), Editor.scrollHorizontally() and Editor.scrollVertically()

Editor.scrollTo() can only be called once per runloop
2012-04-03 16:12:04 -07:00
Corey Johnson
bd20d34132 Only one visible cursor causes the editor to scroll 2012-04-03 15:46:28 -07:00
Corey Johnson
a372a2b411 Add Editor.bounds() and Editor.screenPositionInBounds() 2012-04-03 15:36:25 -07:00
Nathan Sobo
846846abe8 Keymap normalizes key patterns so modifier keys can be listed in a random order. 2012-04-03 15:51:53 -06:00
Nathan Sobo
68bd79f8c2 Max line length is preserved when a new buffer is assigned to an editor. 2012-04-03 15:33:27 -06:00
Nathan Sobo
fb915f9c1c 💄 2012-04-03 15:24:11 -06:00
Nathan Sobo
3a8c444e1f Merge branch 'master' of github.com:github/atom 2012-04-03 15:01:34 -06:00
Nathan Sobo
d521dab2cf Horizontal scrollbar is always visible, and clicking scrollbars doesn't move cursor.
The editor is divided into gutter and scroller. The gutter is scrolled to the correct vertical position whenever the lines are scrolled inside of scroller.
2012-04-03 15:01:28 -06: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
Corey Johnson
e0274c293f Better error output 2012-04-03 10:33:24 -07:00
Nathan Sobo
f35344d4a3 💄 2012-04-03 11:33:02 -06:00
Nathan Sobo
c5004b71b1 Selections are only cleared when cursor is explicitly moved
This allows multiple selections to be modified without changes to an earlier selection clearing later selections. It means we can remove the `modifySelections` method from `CompositeSelection` and just call methods on selections in a loop.
2012-04-03 11:27:49 -06:00
Corey Johnson
f6bc82f26e Update CFBundleVersion to the correct version 2012-04-03 09:43:55 -07:00
Corey Johnson
b4cfd7fc85 Selection and Cursor use Anchor to hold their buffer and screen positions 2012-04-03 08:58:25 -07:00
Corey Johnson
bf5ebc9969 💄
xxwip
2012-04-03 08:58:22 -07:00
Corey Johnson
7dae03de0d :lipstick 2012-04-02 14:26:43 -07:00
Corey Johnson
a75441b809 Remove unused methods 2012-04-02 14:13:25 -07:00
Corey Johnson
9a8475b8e3 Rename CompositeCursor.modifyCursors to moveCursors 2012-04-02 13:28:02 -07:00
Corey Johnson
ea92a957cf Add sparkle support to Atom 2012-04-02 12:21:25 -07:00
Corey Johnson
25b5b18034 💄 2012-04-02 09:08:11 -07:00
Corey Johnson
3c193a2328 Force removal of pkg dir 2012-04-02 09:08:04 -07:00
Corey Johnson
edbd378879 All keybindings are stored in the src/keybindings folder now 2012-04-02 08:57:08 -07:00
Corey Johnson
3beec6246c The sad octocat was making me sad. Using a wooden lighting bolt icon now. 2012-04-02 08:56:33 -07:00
Corey Johnson
23fae4c919 Rename mentions of url to path 2012-03-30 15:52:19 -07:00
Corey Johnson
3b048c69a8 💄 2012-03-30 15:40:55 -07:00
Corey Johnson
230f40bf3e Window title is set to active editor's buffer path. 2012-03-30 15:15:20 -07:00
Corey Johnson
abb585fbf6 Editor emits buffer-changed-event 2012-03-30 15:14:59 -07:00
Corey Johnson
001d866bec Event names are present tense, so buffer emits 'path-change' 2012-03-30 11:26:34 -07:00
Corey Johnson
90242a787f Use Buffer.getPath and Buffer.setPath(path) 2012-03-30 11:20:17 -07:00
Corey Johnson
551f09dce6 Buffer emits a 'path-changed' event when its path changes 2012-03-30 11:13:58 -07:00
Corey Johnson
be2901ed51 Include benchmark directory in coffee compile rake task 2012-03-30 10:28:30 -07:00
Corey Johnson
5b7a02534c Made test run against empty project 2012-03-30 10:22:54 -07:00
Corey Johnson
8352c5cda3 Rakefile runs tests correctly 2012-03-30 10:17:37 -07:00
Corey Johnson
dc7edc22cf Loading root view with no url opens an empty buffer 2012-03-30 09:42:02 -07:00
Corey Johnson
629517af9e 💄 2012-03-30 09:41:28 -07:00
Corey Johnson
ed2a102c85 Use -configuration instead of -scheme for building release code.
pro tip: Xcode schemes are stored as userdata by default.
2012-03-30 09:23:50 -07:00
Nathan Sobo
d9ec570a18 Merge branch 'master' of github.com:github/atom 2012-03-29 15:48:06 -07:00
Nathan Sobo
3e3b5de71e Update the readme 2012-03-29 15:47:31 -07:00