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
6952e09646
Moved font-size back to 'px' and fixed specs
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
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
Nathan Sobo
9f5a7ceefe
Merge branch 'master' into structural-folding
2012-05-31 18:05:13 -06:00
Nathan Sobo
72b971e01e
Revert "Replace @getLastVisibleScreenRow with @getFirstVisibleScreenRow"
...
This reverts commit 89ac1f50af .
2012-05-31 17:56:26 -06:00
Nathan Sobo
645f57bb40
Merge branch 'master' of github.com:github/atom
2012-05-31 17:49:31 -06:00
Nathan Sobo
acb01bba37
Correctly render lines when destroying a fold forces an autoscroll
2012-05-31 17:48:50 -06:00
Corey Johnson
4f5a03ee4d
Merge branch 'master' into structural-folding
2012-05-31 16:24:01 -07:00
Corey Johnson
89ac1f50af
Replace @getLastVisibleScreenRow with @getFirstVisibleScreenRow
...
My 💄 commit awhile back was more than skin deep.
2012-05-31 16:23:38 -07:00
Corey Johnson
516de1ede1
Merge branch 'master' into structural-folding
2012-05-31 11:46:23 -07:00
Nathan Sobo
06fffe6c4b
Merge branch 'master' of github.com:github/atom
...
Conflicts:
src/app/editor.coffee
2012-05-31 12:11:07 -06:00
Nathan Sobo
6291635586
Add Editor.logRenderedLines to help debugging
2012-05-31 12:06:20 -06:00
Nathan Sobo
c901417a19
When lines are added, remove any that get pushed down to exceed the max allowed row
...
This fixes issues where unfolding or pasting caused rendering artifacts below the last visible row.
2012-05-31 12:06:00 -06:00
Corey Johnson
477a11b6ba
💄
2012-05-31 10:27:14 -07:00
Nathan Sobo
27f1117069
Bugfix: Render additional line numbers when unfolding (still needs a test)
2012-05-31 10:50:57 -06:00
Corey Johnson
76f5d35eb9
Add toggle-fold event to editor
2012-05-30 15:43:21 -07:00
Nathan Sobo
0ef4c7e172
Only re-render the gutter when we render new lines
2012-05-29 15:12:11 -06:00
Nathan Sobo
3e26386f98
Always re-render gutter from the first rendered to the last rendered screen row
2012-05-29 14:51:19 -06:00
Nathan Sobo
6e34124f12
Overdraw gutter line numbers in addition to editor lines
2012-05-29 13:07:24 -06:00
Nathan Sobo
a9c9a854ac
Only truncate change ranges to the last visible row if the last rendered row is smaller
...
This happens, for example, when the entire buffer is shorter than the number of rows on screen. In this case, the last rendered row is not smaller than the last possible visible row.
2012-05-29 13:03:29 -06:00
Nathan Sobo
c00c3317f0
Down to 2 failures by truncating change ranges to the range of the current rendered lines
2012-05-29 12:52:39 -06:00
Nathan Sobo
8fba4ff935
Fix some off by one errors in the overdraw calculations
2012-05-26 13:52:48 -07:00
Nathan Sobo
328aa3ba6b
WIP: Redoing overdraw code… it's broken
2012-05-26 13:05:25 -07:00
Nathan Sobo
351c283ed6
Merge branch 'master' into overdraw
2012-05-25 13:13:06 -07:00
Nathan Sobo
e2ca3814a9
Hide the cursor when it is on a fold line
2012-05-25 12:35:32 -07:00
Corey Johnson & Nathan Sobo
f8c3d89e60
When folds are selected they are highlighted
2012-05-24 16:39:14 -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
a7d43c2cca
meta-alt-u unfolds lines at cursor
2012-05-22 09:38:14 -07:00
Nathan Sobo
f39891b912
Folds are destroyed when their placeholder line is clicked
2012-05-21 17:55:58 -07:00
Nathan Sobo
ce1c1ff081
Render fold lines with the 'fold' class and remove old fold placeholder support
2012-05-21 13:38:39 -07: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
Corey Johnson & Nathan Sobo
608ccc38e8
Update rendered lines when buffer changes occur outside/straddling rendered region
2012-05-17 16:06:39 -07:00
Corey Johnson & Nathan Sobo
fdf9676ea1
Add scrollBottom to editor
2012-05-17 16:04:57 -07:00
Corey Johnson
857486bcf1
After buffer changes, remove any lines that are beyond the current last rendered screen row.
2012-05-17 10:34:54 -07:00
Nathan Sobo
0d093c3014
2012-05-16 17:28:07 -06:00
Nathan Sobo
5045d68be2
2012-05-16 14:47:09 -06:00
Nathan Sobo
92395a9cfb
Merge branch 'master' of github.com:github/atom
...
Conflicts:
src/app/editor.coffee
2012-05-16 14:07:44 -06:00
Nathan Sobo
442e89e77e
💄 – rename render/updateLines to render/updateVisibleLines
2012-05-16 14:03:26 -06:00
Nathan Sobo
2d8ba3b1ee
Use translate3d to scroll lines / gutter in attempt to improve repaint.
...
Also: Add custom scrollTop method to editor that manages all the custom optimizations we are doing around scrolling.
2012-05-16 13:47:59 -06:00
Corey Johnson
4fb19bf9cc
Fixes bug in benchmarks
...
Need to investigate further
2012-05-16 12:31:59 -07:00
Corey Johnson
05903a6e56
💄
2012-05-16 11:21:28 -07:00
Corey Johnson
1b2b5b3311
💩
2012-05-16 11:06:42 -07:00
Corey Johnson
3614ad6e76
Update lines when the font size changes
2012-05-16 10:58:19 -07:00
Corey Johnson
85c0d6a35a
Only update lines if it is needed
2012-05-16 10:58:02 -07:00
Corey Johnson
399fc71b3c
Make Atom SpacePen view's default to empty object (where needed)
2012-05-16 10:35:50 -07:00
Corey Johnson
bf4b41e482
Revert "Don't trigger scroll event on edit session load, it is called automatically "
...
This reverts commit cae7c18db4 .
2012-05-16 09:07:19 -07:00