Corey Johnson
17b50ee8dc
Folds include their first line
2012-05-30 16:55:15 -07:00
Corey Johnson
42e743f44a
Renderer.toggleFold works for folded, foldable and non-foldable lines
...
When a line is not foldable, we search upward for a suggested fold that contains it and apply that fold instead. If called with a row that is already folded, it unfolds it.
2012-05-30 16:29:45 -07:00
Corey Johnson
76f5d35eb9
Add toggle-fold event to editor
2012-05-30 15:43:21 -07:00
Corey Johnson & Nathan Sobo
63a87fd83e
Renderer.createFoldAtBufferRow uses the fold suggester to determine which syntactic region to fold
2012-05-30 16:02:06 -06:00
Corey Johnson & Nathan Sobo
8a77a740f5
Renderer indicates when a screen line starts a foldable region
2012-05-30 12:27:01 -06: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
Corey Johnson & Nathan Sobo
9b83ce6545
renderer tells editor when the gutter needs to be updated
2012-05-24 11:17:37 -07:00
Corey Johnson & Nathan Sobo
c1197c1d0e
spec 💄
2012-05-23 14:56:22 -07:00
Corey Johnson & Nathan Sobo
dd7fff4522
WIP: Adding specs for various fold corner cases… think we still have some issues and gutter updates are failing.
2012-05-23 11:03:33 -07:00
Corey Johnson & Nathan Sobo
04f4a9a765
WIP: Handle buffer change events correctly with respect to folded lines
...
We're handling changes that straddle the start row and are in the middle of the fold, but we're still screwing up when the old range straddles the end row.
2012-05-22 19:02:13 -07:00
Corey Johnson
7b4ebcdd42
Changes inside a fold correctly change the start/end row
2012-05-22 12:09:37 -07:00
Nathan Sobo
74008ab329
Fold placeholder lines are treated as if they're empty
2012-05-21 19:20:18 -07:00
Nathan Sobo
72f1874c5b
Nuke more old fold specs
2012-05-21 18:55:05 -07:00
Nathan Sobo
031c04b888
Clean up remaining position translation spec for folds. It still has one legit failure though.
2012-05-21 18:48:28 -07:00
Nathan Sobo
f3cada9e20
Nuke some fold tests that don't matter anymore
2012-05-21 18:46:16 -07:00
Corey Johnson
d2899fa58a
Folds handle change events
2012-05-21 15:01:14 -07:00
Corey Johnson
8af289dde1
Merge branch 'fold-simplification' of github.com:github/atom into fold-simplification
2012-05-21 13:45:07 -07:00
Nathan Sobo
9beff8edbb
Un-F
2012-05-21 13:36:19 -07:00
Corey Johnson
d7e1ffcdf2
Update render spec to new version of Renderer.createFold
2012-05-21 10:29:48 -07:00
Nathan Sobo
a57ccc1b7f
Remove specs that don't matter anymore w/ linewise folding
2012-05-18 20:59:58 -06:00
Nathan Sobo
c491d92437
Nested folds can start at the same row as the fold that contains them
...
...still need to test destroying the outer fold though.
2012-05-18 20:14:05 -06:00
Nathan Sobo
9757786257
Add passing spec for nested folds (that start on different rows)
2012-05-18 19:39:23 -06:00
Nathan Sobo
03ae0bbbb6
Guts on the floor, but 2 line-wise fold specs are passing and the renderer is getting there
2012-05-18 19:22:56 -06:00
Corey Johnson & Nathan Sobo
39e02bbf9f
wip: what nathan and corey did
2012-05-18 15:15:44 -07:00
Corey Johnson & Nathan Sobo
20c9b61b91
Fix issue where creating a second fold on a wrapped line fragment caused a duplicate line to be rendered
2012-05-18 12:22:40 -06:00
Nathan Sobo
a3686da496
Move atom.tabText to a property on Editor.prototype for more locality
2012-04-05 17:55:15 -06:00
Corey Johnson & Nathan Sobo
84ba78c55d
Tab characters render as atomic tokens containing spaces
2012-04-05 15:22:57 -06: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