Nathan Sobo
fd3e98cd28
💄
2012-04-05 17:58:44 -06:00
Nathan Sobo
a3686da496
Move atom.tabText to a property on Editor.prototype for more locality
2012-04-05 17:55:15 -06:00
Nathan Sobo
aba968acd9
Tab key inserts spaces or a tab character depending on Editor.prototype.softTabs setting
2012-04-05 17:39:40 -06:00
Nathan Sobo
c4a23c7dd0
💄
2012-04-05 17:29:42 -06:00
Nathan Sobo
158315ffaa
Always place cursor at end of selection after inserting text
2012-04-05 17:22:16 -06:00
Corey Johnson & Nathan Sobo
84ba78c55d
Tab characters render as atomic tokens containing spaces
2012-04-05 15:22:57 -06:00
Corey Johnson & Nathan Sobo
4550f017c3
add fixture file with tabs
2012-04-05 13:13:32 -07:00
Corey Johnson & Nathan Sobo
ef21823e2a
Move ScreenLineFragment.splitTokenAt to Token.splitAt
2012-04-05 14:11:12 -06:00
Corey Johnson & Nathan Sobo
41a90f6caf
Instantiate token objects in highlighter
2012-04-05 14:08:04 -06:00
Corey Johnson & Nathan Sobo
19c030360c
Better error reporting
2012-04-05 14:07:52 -06:00
Corey Johnson & Nathan Sobo
9814d74c43
This ended up not solving our memory problems
2012-04-05 12:59:38 -07:00
Corey Johnson & Nathan Sobo
0386ecdc96
Move isAtomic property from screen line fragment to tokens
2012-04-05 12:59:38 -07:00
Nathan Sobo
77366b5497
Remove unused editor bounds methods
2012-04-05 09:38:50 -06:00
Nathan Sobo
845bc8fde4
Merge branch 'master' of github.com:github/atom
2012-04-04 18:27:40 -06:00
Nathan Sobo
1b848307d4
Restore selections on redo
2012-04-04 18:27:34 -06:00
Nathan Sobo
cbeb351de4
Restore selections after undo
...
This only restores changes made via the CompositeSelection… this makes sense because this is the only way to make changes interactively. Any other changes are made via the api or a command line and should not modify selections when they are undone. Still need to test restoration after redo.
2012-04-04 18:04:32 -06:00
Nathan Sobo
5def158584
UndoManager's batch methods take optional arrays of ranges for restoring the selection
2012-04-04 17:07:52 -06:00
Corey Johnson
fb02290972
Sync multiple cursor animations
2012-04-04 15:01:38 -07:00
Corey Johnson
2489e19bb7
CompositeCursor.addCursor takes an optional screenPosition argument
2012-04-04 14:08:30 -07:00
Corey Johnson & Nathan Sobo
48b4008cab
Changes made with multiple cursors are undone/redone in parallel
2012-04-04 14:21:03 -06:00
Corey Johnson
6ad50b379f
Make it more obvious that Editor's scroll methods take pixelPositions
2012-04-04 11:19:17 -07:00
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