Kevin Sawicki
82dd3ddf73
Remove extra it
2012-12-13 10:11:37 -08:00
Corey Johnson
e2a917fcf3
Change tabText to tabLength
2012-10-18 11:31:39 -07:00
Corey Johnson & Nathan Sobo
12b06ddf0c
Get spec suite running (lots of failures)
2012-08-27 17:36:36 -05:00
Nathan Sobo
c2c8724ad0
Initial commit
2012-08-10 13:32:19 -06:00
Nathan Sobo
a4db677979
Implement setSelectedBufferRange w/ setSelectedBufferRanges
...
Also add the preserveFolds option, which doesn't destroy folds containing the selected ranges – mainly for specs right now
2012-07-12 18:57:12 -06:00
Corey Johnson
801a91ec9b
Specs cleanup buffers
2012-06-29 15:38:12 -07:00
Nathan Sobo
3524490946
Ensure selection emits event if a buffer change moves its anchor
2012-06-29 11:55:16 -06:00
Nathan Sobo
1a1d3b3cf9
EditSession no longer requires a reference to its Editor
2012-06-13 11:18:47 -06:00
Nathan Sobo
4ccf976501
Pass tabText into EditSession explicitly on construction
2012-06-13 11:13:41 -06:00
Nathan Sobo
099151eeb2
Eliminate Editor from remaining selection-spec
2012-06-13 10:32:42 -06:00
Nathan Sobo
a6b066ef3d
Move specs of fold interactions with backspace/delete/insertText methods to edit-session-spec
2012-06-13 10:32:23 -06:00
Nathan Sobo
b53686ed36
Move selection rendering specs from selection-spec to editor-spec
2012-06-13 10:19:24 -06:00
Nathan Sobo
51905f245a
Move auto-indent/outdent specs from selection-spec to edit-session-spec
2012-06-12 16:31:17 -06:00
Nathan Sobo
33ed6e980e
This is tested implicitly everywhere
2012-06-12 16:26:01 -06:00
Nathan Sobo
0e592b0e7a
Move selectWord specs to edit-session-spec
2012-06-12 16:25:50 -06:00
Nathan Sobo
b44a0b69a9
Move specs for toggleLineCommentsInSelection to edit-session-spec
2012-06-12 16:22:18 -06:00
Nathan Sobo
560db26cf1
Move indent/outdent selection specs to edit-session-spec
2012-06-12 16:15:11 -06:00
Nathan Sobo
67e9faa5d0
Kill redundant specs
2012-06-12 16:14:52 -06:00
Nathan Sobo
cca387b36a
Move selectLine specs from selection-spec to edit-session-spec
2012-06-12 16:14:37 -06: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
c2c48b9b38
Move more specs to EditSession. Auto indent and soft tabs settings are delegated to edit session.
2012-06-11 17:06:40 -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
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
Corey Johnson
0cfb2e9ef4
Rename Editor.visibleLines to Editor.renderedLines
2012-06-04 17:53:58 -07:00
Nathan Sobo
b667ba4262
If selection is empty when toggling a line comment, keep it empty
2012-06-04 11:50:48 -06:00
Nathan Sobo
14e399fdf0
Meta-/ comments out selected lines
2012-06-01 19:38:33 -06:00
Nathan Sobo
9cb067f162
Enable auto-indent for 1 more spec + 💄
2012-05-31 18:22:54 -06:00
Corey Johnson
b03230cc6c
Move auto indent/outdent to selection spec
2012-05-31 13:57:04 -07:00
Corey Johnson & Nathan Sobo
35b2f0e8c7
Buffer changes updates a stable list of folds
2012-05-25 11:05:45 -07:00
Corey Johnson & Nathan Sobo
74594ed2be
Destroy folds before inserting text on a fold line. Spec for deleting a fold line.
2012-05-24 13:53:48 -07:00
Nathan Sobo
5045d68be2
2012-05-16 14:47:09 -06:00
Corey Johnson
afceacefc8
meta-[ outdents selected lines
2012-04-10 10:18:39 -07:00
Corey Johnson
ec221bfee0
meta-] indents selected lines
2012-04-10 09:55:13 -07: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