Commit Graph

13 Commits

Author SHA1 Message Date
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