Nathan Sobo
c6fa2313ca
💄
2012-06-06 17:47:29 -06:00
Nathan Sobo
00b9c6db81
Active edit session 💄
2012-06-06 17:46:00 -06:00
Nathan Sobo
ff52993c9e
Fix bugs when switching between EditSessions
2012-06-06 17:00:02 -06:00
Nathan Sobo
024618b69a
Build Renderer in EditSession and assign it when switching to that EditSession
2012-06-06 12:42:53 -06:00
Nathan Sobo
4885af4fa8
Merge branch 'master' of github.com:github/atom
2012-06-06 12:11:00 -06:00
Nathan Sobo
5a28656259
Introduce EditSession class, which replaces edit session hashes
2012-06-06 12:10:49 -06:00
Corey Johnson
3792d24c9f
Mini editor's don't toggle active-editor-path-change event
2012-06-05 13:43:03 -07:00
Nathan Sobo
e6af7a9515
Adjust the width of rendered lines to account for the longest line
2012-06-05 14:26:06 -06:00
Nathan Sobo
3a776347ff
Avoid leaking window resize subscriptions in editor spec
2012-06-05 14:25:08 -06:00
Nathan Sobo
e7ffaa1757
Merge branch 'master' of github.com:github/atom
2012-06-05 12:48:16 -06:00
Nathan Sobo
911a417cb8
Rename maxLineLength to softWrapColumn
2012-06-05 12:47:39 -06:00
Corey Johnson
4f364e8cd8
Add newline-below event
2012-06-05 11:30:29 -07:00
Corey Johnson
afab19938e
Use wasReversed instead of isReversed to show the local variable stores some temporal state.
2012-06-05 11:30:29 -07:00
Nathan Sobo
4dc41dcc21
💄
2012-06-05 11:09:40 -06:00
Nathan Sobo
e8705b7807
Merge branch 'master' of github.com:github/atom
2012-06-05 10:59:41 -06:00
Nathan Sobo
c24b8a90b2
If lines are removed after a renderer change, update padding appropriately
2012-06-05 10:59:11 -06:00
Corey Johnson
ce25b33c25
Inserting a newline before a top-level c-style statement (starting with a '{') no longer auto-indents it.
2012-06-05 09:09:20 -07:00
Nathan Sobo
9cfbce826d
WIP: Don't allow impossibly high scroll top values.
...
It fixes the move to bottom issues, but breaks some other tests. Not sure why yet...
2012-06-04 21:57:10 -06:00
Nathan Sobo
4eb4c95a86
Constrain the end of the old screen range to the lastRenderedScreenRow, not maxScreenRow
...
Constraining the end of the new range max screen row instead of the last rendered row is what allows the buffer to get longer when the last rendered screen row is smaller than the last visible screen row. But constraining the end of the old range to this was causing artifacts. The old range should always be constrained to what is rendered on screen now, not what "could be". What "could be" is the domain of the new range.
2012-06-04 20:48:29 -06:00
Nathan Sobo
8f9d066d99
Restore reverted rename. clearLines -> clearRenderedLines
2012-06-04 20:32:50 -06:00
Nathan Sobo
c3a157a544
Revert "Use renderTo and renderFrom (instead of firstVisible/lastVisible) to adjust visible lines."
...
This reverts commit 419d7b1dec .
Conflicts:
spec/app/editor-spec.coffee
2012-06-04 20:29:40 -06:00
Corey Johnson
0cfb2e9ef4
Rename Editor.visibleLines to Editor.renderedLines
2012-06-04 17:53:58 -07:00
Corey Johnson
419d7b1dec
Use renderTo and renderFrom (instead of firstVisible/lastVisible) to adjust visible lines.
...
Fix specs that had wrong assumptions,
2012-06-04 17:48:11 -07:00
Corey Johnson
7364ea79cc
TreeView serializes its attached state
2012-06-04 16:02:50 -07:00
Nathan Sobo
a033d13c1a
Merge branch 'master' of github.com:github/atom into toggle-comments
2012-06-04 11:55:15 -06:00
Nathan Sobo
b667ba4262
If selection is empty when toggling a line comment, keep it empty
2012-06-04 11:50:48 -06:00
Corey Johnson
2f6dd085ee
Editor toggle-fold event toggles the largest fold at the cursor position
2012-06-04 09:44:20 -07:00
Corey Johnson & Nathan Sobo
86316c2115
Use last buffer row instead of last screen row to calculate gutter width.
2012-06-02 09:24:27 -07:00
Corey Johnson & Nathan Sobo
fd152ef2a9
When a fold is created inside an existing fold, don't trigger change events or update line map.
2012-06-02 09:21:06 -07:00
Corey Johnson & Nathan Sobo
433a4db5ae
Add Fold.isContainedByFold(fold)
2012-06-02 09:19:37 -07:00
Corey Johnson & Nathan Sobo
daa96d8332
Remove triggering of 'fold' and 'unfold' events when fold is created/destroyed.
...
They aren't being used
2012-06-02 09:17:37 -07:00
Nathan Sobo
14e399fdf0
Meta-/ comments out selected lines
2012-06-01 19:38:33 -06:00
Nathan Sobo
43f36dbcbb
Merge branch 'master' into toggle-comments
2012-06-01 14:29:57 -06:00
Nathan Sobo
3637c5b64b
Remove stray console.log
2012-06-01 14:29:47 -06:00
Nathan Sobo
2c35a1f12d
LineCommenter.proto.toggleLineCommentsInRange comments / uncomments lines in a selection
2012-06-01 14:28:40 -06:00
Nathan Sobo
4c795718eb
Extract a stateForRow method on Highlighter
2012-06-01 14:28:01 -06:00
Nathan Sobo
d8b324e14f
WIP: Starting on toggling comments.
2012-06-01 14:03:48 -06:00
Nathan Sobo
58c082445b
Merge branch 'master' of github.com:github/atom
2012-06-01 14:01:44 -06:00
Nathan Sobo
74bd510e75
💄 rename ScreenLineFragment to ScreenLine
...
These objects always span an entire screen line now that we do line-wise folding
2012-06-01 14:01:33 -06:00
Nathan Sobo
2baf374937
Newline at end of file 💄
2012-06-01 14:01:00 -06:00
Corey Johnson
30d07fd1a0
Rename Buffer.numLines to Buffer.getLineCount
2012-06-01 11:25:58 -07:00
Nathan Sobo
37d423fb60
Fix broken build :-/
2012-06-01 12:22:54 -06:00
Nathan Sobo
5b20bfd994
Method name 💄 for Highlighter
2012-06-01 12:15:26 -06:00
Corey Johnson
6952e09646
Moved font-size back to 'px' and fixed specs
2012-06-01 11:06:13 -07:00
Corey Johnson
4634508c37
ctrl-9 is fold ctrl-( is fold all
2012-06-01 11:06:13 -07:00
Corey Johnson
2623724fd4
Add fold-all event to editor
2012-06-01 11:06:13 -07:00
Corey Johnson
1dce0ad2e7
Allow folds on line 0
2012-06-01 11:06:13 -07:00
Corey Johnson
c087961451
Auto-indent doesn't cascade indent changes.
2012-06-01 11:06:13 -07:00
Corey Johnson
13aab2ed8c
When adjusting Editor.scrollView, use scrollTop instead of translate3d
2012-06-01 11:06:13 -07:00
Corey Johnson
3c826ec898
Use 'pt' instead of 'px' for font sizes
2012-06-01 11:06:13 -07:00