Commit Graph

453 Commits

Author SHA1 Message Date
Nathan Sobo
ede9309a80 💄 2012-06-13 20:09:33 -06:00
Nathan Sobo
8769061a0f Merge branch 'master' of github.com:github/atom into language-mode 2012-06-13 18:34:59 -06:00
Nathan Sobo
e444ba193c Merge all ace adaptors into a single AceAdaptor class 2012-06-13 18:31:03 -06:00
Nathan Sobo
5f20b09284 Remove Buffer.proto.getMode. All ace interaction should be mediated by LanguageMode 2012-06-13 18:09:28 -06:00
Nathan Sobo
d04d4e22a2 Move autoOutdent code to LanguageMode 2012-06-13 18:08:08 -06:00
Corey Johnson
aaf376f6ad Add meta-e keybinding 2012-06-13 16:54:55 -07:00
Nathan Sobo
fc72f39342 Move autoIndent code into LanguageMode 2012-06-13 16:12:51 -06:00
Nathan Sobo
4149cf11de Determine which ace mode to require inside LanguageMode
instead of calling Buffer.getMode, which I axe soon
2012-06-13 15:48:13 -06:00
Nathan Sobo
591a294e2e Absorb FoldSuggester into LanguageMode 2012-06-13 15:44:40 -06:00
Nathan Sobo
49e0e2095a Absorb line commenting into LanguageMode 2012-06-13 15:36:35 -06:00
Nathan Sobo
f1397db60b Rename Highlighter -> LanguageMode 2012-06-13 15:21:44 -06:00
Nathan Sobo
c09c672843 Rename screenLineForRow -> lineForScreenRow 2012-06-13 14:40:23 -06:00
Nathan Sobo
f8e776ea15 📣 💄 for editor.coffee 2012-06-13 14:16:51 -06:00
Nathan Sobo
39c3be9213 Editor 💄 2012-06-13 12:17:48 -06:00
Nathan Sobo
f000686f07 Method name 💄 2012-06-13 11:49:01 -06:00
Nathan Sobo
0c7e9f34cc Assign softTabs on EditSession construction 2012-06-13 11:23:25 -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
09a05141d0 Remove old unused Anchor class 2012-06-13 11:06:41 -06:00
Corey Johnson & Nathan Sobo
912b89184e Rename highlightSelectedFolds to highlightFoldsContainingBufferRange on Editor. 2012-06-12 17:23:19 -07:00
Corey Johnson & Nathan Sobo
222e12d29d Backspace in column 0 below a fold absorbs line into fold 2012-06-12 16:49:49 -07:00
Corey Johnson & Nathan Sobo
feb0c6af85 Anchor.setBufferPosition clips position by default 2012-06-12 16:49:48 -07:00
Corey Johnson & Nathan Sobo
6c8b2e1a54 Use buffer instead of line map for EditSession.clipBufferPosition(position) 2012-06-12 16:49:48 -07:00
Nathan Sobo
b44a0b69a9 Move specs for toggleLineCommentsInSelection to edit-session-spec 2012-06-12 16:22:18 -06:00
Nathan Sobo
426eeb5abe Merge branch 'master' of github.com:github/atom 2012-06-12 16:15:23 -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
Nathan Sobo
3a93887292 Move structural folding to EditSession 2012-06-12 15:49:42 -06:00
Nathan Sobo
efcc43c296 Merge branch 'master' of github.com:github/atom 2012-06-12 15:21:06 -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
a71ee63906 Move undo/redo to EditSession 2012-06-12 13:40:18 -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
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
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
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
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
Nathan Sobo
4d5760e287 Kill tabText ivar on EditSession 2012-06-11 16:06:02 -06:00