Garen Torikian
0c5e38680d
Internalize a bunch of methods
2013-04-12 14:37:21 -05:00
Nathan Sobo
7b7c77645c
Rename SelectionView.destroyed to .needsRemoval to match CursorView
2013-04-05 14:17:20 -06:00
Kevin Sawicki & Nathan Sobo
59d0742c17
Remove Anchor and AnchorRange. They're fully replaced by markers.
...
We're still leaking markers for selections and cursors. We need to
clean that up before merging.
2013-02-05 18:15:48 -07:00
Nathan Sobo
2380fa3445
Handle 'autoscroll' entirely in Cursor instead of in Anchor
...
This commit makes autoscroll a 3-valued property on the cursor. If it
is set to true or false, that setting will stick until the cursor's
next visual update. That means we can explicitly move the cursor with
autoscroll set to false, but also still autoscroll by default when the
cursor's anchor moves on its own.
2013-01-29 12:11:43 -07:00
Nathan Sobo
0a08d03c68
Rename Buffer, TokenizedBuffer, and Selection events
2013-01-04 13:59:11 -07:00
Nathan Sobo
1762ae2744
Rename 'selection-change' to 'selection:changed'
2013-01-04 13:48:49 -07:00
Corey Johnson & Nathan Sobo
d4f44f6554
Give selection view '.selection' class and region divs '.region' class
2012-11-30 12:52:38 -07:00
Corey Johnson & Nathan Sobo
c7363b3347
Highlight selection w/ animation when autoscroll is true
2012-11-30 12:44:12 -07:00
Corey Johnson & Nathan Sobo
be2b9ee100
Store autoscroll state on Selection and Cursor models
2012-11-30 12:08:41 -07:00
Corey Johnson & Nathan Sobo
f9c7c08641
Selected results of a find operation are centered in the viewport
2012-11-29 18:52:34 -07:00
Nathan Sobo
9424674b37
Trigger 'selection-change' events when selection view changes
2012-11-14 14:34:52 -07:00
Corey Johnson & Nathan Sobo
9fa577f8c4
Using requestAnimationFrame with some disabled features
...
Not sure if it feels faster, but the code is a bit more organized at least.
2012-11-13 18:25:29 -07:00
Nathan Sobo
f96cf439c0
Adding/removing SelectionViews through Editor#updateDisplay
2012-11-13 15:06:32 -07:00
Corey Johnson & Nathan Sobo
9c0f1d428f
Rename updateAppearance to updateDisplay
2012-11-13 11:21:46 -08:00
Nathan Sobo
c3e748a17c
WIP: Use rake to start compiling resources (like require.coffee)
2012-08-26 16:29:46 -05:00
Nathan Sobo
c2c8724ad0
Initial commit
2012-08-10 13:32:19 -06:00
Nathan Sobo
470f46931f
Selection views update properly when selections are merged
2012-06-14 10:28:21 -06:00
Nathan Sobo
e444ba193c
Merge all ace adaptors into a single AceAdaptor class
2012-06-13 18:31:03 -06:00
Corey Johnson & Nathan Sobo
912b89184e
Rename highlightSelectedFolds to highlightFoldsContainingBufferRange on Editor.
2012-06-12 17:23:19 -07:00
Nathan Sobo
4e74f1bf2e
Fix issues with selections when switching between edit sessions
...
SelectionViews now update their appearance immediately when constructed. We can't assume they're empty. CursorView doesn't do a blanket `off()` call to its model when it's removed anymore, which was screwing up selection updates when switching back. Only attach selections / cursors when the editor is attached, and extract everything we do into a `renderWhenAttached` method.
2012-06-11 22:01:27 -06:00
Nathan Sobo
cffadcf4a8
Remove CompositeCursor and Selection. Move their remaining methods into Editor
2012-06-11 10:11:33 -06:00
Nathan Sobo
f8369d2ea1
More SelectionView 💄
2012-06-08 18:49:30 -06:00
Nathan Sobo
2161336c78
Move logic out of CompositeSelection into EditSession
2012-06-08 17:46:14 -06:00
Nathan Sobo
873c80eaf2
Move most remaining logical methods from selection view into model
2012-06-08 15:26:54 -06:00
Nathan Sobo
31bd38dfcc
Move merging of intersecting selections into EditSession and the Selection model
2012-06-08 13:26:54 -06:00
Nathan Sobo
7eb01272ed
Move text insertion and auto indent/outdent code from the selection view to the model
2012-06-08 12:31:29 -06:00
Nathan Sobo
f3144fe0d8
Base the screen range of the selection view on the selection model
2012-06-08 11:22:12 -06:00
Nathan Sobo
5a37a39b9b
Tie creation of SelectionViews to adding Selection models to the EditSession
2012-06-07 18:20:00 -06:00
Nathan Sobo
7cdd4d684f
Rename Selection to SelectionView in preparation for adding a Selection model
2012-06-07 17:05:14 -06:00