Nathan Sobo
426eeb5abe
Merge branch 'master' of github.com:github/atom
2012-06-12 16:15:23 -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
Corey Johnson
b841a04093
Don't serialize pathless buffer text
2012-06-12 15:12:58 -07:00
Corey Johnson
2ce6276e22
Add fs.exists test
2012-06-12 15:12:58 -07:00
Nathan Sobo
09bfc1db92
Reorganize editor-spec more logically
2012-06-12 15:59:55 -06:00
Nathan Sobo
6317f9526f
💄
2012-06-12 15:49:49 -06:00
Nathan Sobo
3a93887292
Move structural folding to EditSession
2012-06-12 15:49:42 -06:00
Nathan Sobo
6a017ba666
Move all mouse event specs under one describe block
2012-06-12 15:33:25 -06:00
Nathan Sobo
efcc43c296
Merge branch 'master' of github.com:github/atom
2012-06-12 15:21:06 -06:00
Nathan Sobo
f87476b80b
Streamline cursor movement specs in editor-spec
2012-06-12 15:20:15 -06:00
Nathan Sobo
918b8d95da
Move some auto indent specs to edit-session-spec
2012-06-12 15:19:40 -06:00
Corey Johnson
e56e775d8d
Merge branch 'dirty-buffer'
2012-06-12 14:13:23 -07:00
Nathan Sobo
b895122c24
Simplify Editor spec's mouse event integration specs
...
Test handling of non-corresponding buffer & screen positions in spec on setCursorScreenPosition in edit-session-spec instead of in editor-spec
2012-06-12 14:44:45 -06:00
Nathan Sobo
87bc5ad02a
Make setBuffer spec lean on setActiveEditSessionIndex spec
2012-06-12 14:23:49 -06:00
Nathan Sobo
8a34ea20c4
Move undo/redo specs to edit-session-spec
2012-06-12 13:44:40 -06:00
Nathan Sobo
a71ee63906
Move undo/redo to EditSession
2012-06-12 13:40:18 -06:00
Nathan Sobo
7b64066bf4
Remove stray console.log
2012-06-12 13:40:02 -06:00
Nathan Sobo
4f50a4735d
Add specs for EditSession.proto.selectToScreenPosition. Move coverage of selection merging
2012-06-12 13:37:01 -06:00
Corey Johnson
fc025156d3
console.log 💩
2012-06-12 11:30:08 -07:00
Corey Johnson
1fb8852fc3
Saving a buffer sets its modified flag to false
2012-06-12 11:29:38 -07:00
Corey Johnson
8ab167fd00
Reloading when there are modified buffers pops up a dialog.
2012-06-12 10:52:11 -07:00
Corey Johnson
aa32655542
Add RootView.modifiedBuffers()
2012-06-12 10:52:11 -07:00
Corey Johnson
321e7b6129
Add $native.reload
2012-06-12 10:52:11 -07:00
Corey Johnson
a2f60c141b
Remove logs from spec
2012-06-12 10:52:11 -07:00
Corey Johnson
b5e3977ef2
Use Native class to call saveDialog
2012-06-12 10:52:11 -07:00
Corey Johnson
e56ef733ad
Add save alert when closing a modified buffer
2012-06-12 10:52:11 -07:00
Corey Johnson
0fec1fc5ba
Don't close edit session when its buffer is modified
2012-06-12 10:52:11 -07:00
Corey Johnson
9339791260
Set modified flag to true when there is a buffer change.
2012-06-12 10:52:11 -07:00
Nathan Sobo
869df0bbc6
Add word and line selection methods to EditSession
2012-06-12 11:47:37 -06:00
Nathan Sobo
5e4625ebf7
Move cursor merging specs to edit-session-spec
2012-06-12 10:55:48 -06:00
Nathan Sobo
1245252ca4
Move deleteToEndOfWord specs
2012-06-12 10:38:09 -06:00
Nathan Sobo
727e9b8156
Move specs for selectUp/Down/Left/Right w/ multiple selections
2012-06-12 10:25:42 -06:00
Nathan Sobo
5f263e63f0
Move cutToEndOfLine specs to edit-session-spec
2012-06-12 10:18:18 -06:00
Nathan Sobo
89f180524a
Move coverage of multi-cursor text insertion, backspace, and delete to edit-session-spec
2012-06-12 10:12:12 -06:00
Nathan Sobo
47d730efbf
Properly merge intersecting selections when meta-dragging the mouse
2012-06-11 22:01:46 -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
b51ab212f6
Un-F
2012-06-11 17:40:51 -06:00
Nathan Sobo
5f29f7e67d
💄
2012-06-11 17:40:37 -06:00
Nathan Sobo
09e0fb2a58
Delete irrelevant specs
2012-06-11 17:40:26 -06:00
Nathan Sobo
e619d84893
Move insertTab specs to edit-session-spec
2012-06-11 17:40:02 -06:00
Nathan Sobo
915707cd9c
Move backspace, delete, and pasteboard operations specs to edit-session-spec
2012-06-11 17:35:13 -06:00
Nathan Sobo
dc6012dabd
Merge branch 'master' of github.com:github/atom
2012-06-11 17:08:07 -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
Corey Johnson
26a2f51a03
Append autocomplete to editor instead of renderedLines
2012-06-11 15:48:03 -07:00
Corey Johnson
a4f4b3a3bb
Update tests to use editor.renderLines.css('top')
...
instead of editor.scrollView.scrollTop().
2012-06-11 15:48:03 -07:00
Corey Johnson
e2bd646e0f
Scroll editor using css 'top' property instead of scrollTop
2012-06-11 15:48:03 -07:00
Nathan Sobo
9a5c252c85
Put tabText ivar back. Removing it broke shit.
2012-06-11 16:11:30 -06:00
Nathan Sobo
0cbbc81a3c
Merge branch 'master' of github.com:github/atom
2012-06-11 16:06:57 -06:00