Commit Graph

14143 Commits

Author SHA1 Message Date
Corey Johnson & Nathan Sobo
9afc12b05c Now that folds are linewise, we don't need to adjust the start row of buffer change events 2012-05-22 13:24:31 -07:00
Corey Johnson
7b4ebcdd42 Changes inside a fold correctly change the start/end row 2012-05-22 12:09:37 -07:00
Corey Johnson
a7d43c2cca meta-alt-u unfolds lines at cursor 2012-05-22 09:38:14 -07:00
Corey Johnson
ed271fee0f Remove unused methods from Fold 2012-05-22 09:11:09 -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
6387f512c7 Translate buffer positions inside of folds to column 0 of the first line of the fold 2012-05-21 19:02:05 -07:00
Nathan Sobo
7744d6087b Merge branch 'fold-simplification' of github.com:github/atom into fold-simplification 2012-05-21 17:56:16 -07:00
Nathan Sobo
f39891b912 Folds are destroyed when their placeholder line is clicked 2012-05-21 17:55:58 -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
ce1c1ff081 Render fold lines with the 'fold' class and remove old fold placeholder support 2012-05-21 13:38:39 -07:00
Corey Johnson
080a511d0d 💄 2012-05-21 10:11:41 -07: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
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
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
Corey Johnson
0e09659d79 Gutter adjusts its width to account for the width of the last line number 2012-05-17 10:16:20 -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
Nathan Sobo
66b711a026 Kill logging 2012-05-16 13:46:36 -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
55e3f94a35 Remove log 2012-05-16 10:33:05 -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
Corey Johnson
cae7c18db4 Don't trigger scroll event on edit session load, it is called automatically
Fixes partially rendered lines when you reload
2012-05-15 15:28:10 -07:00
Corey Johnson
aacd077749 Editor.renderLines() calls updateLines (more DRY) 2012-05-15 14:47:59 -07:00
Corey Johnson
484b55800a Call updateLines when lines are removed from buffer 2012-05-15 14:27:22 -07:00
Corey Johnson
91aebde968 Only update gutter when editor is attached 2012-05-15 12:32:46 -07:00
Corey Johnson
54a3823606 Buffer change events update the @lastRenderedScreenRow 2012-05-15 12:29:59 -07:00
Corey Johnson
63d53af577 💩 2012-05-15 10:46:58 -07:00
Corey Johnson
80c066b03b The test for tabs in a token was totally wrong. Now it is totally right. 2012-05-15 10:12:56 -07:00
Corey Johnson
6b3664a040 Vertical scrollbar height is updated when switching buffers 2012-05-15 10:02:56 -07:00
Corey Johnson
facd7082d0 optimization: only tokens containing tabs are split into multiple tokens 2012-05-15 08:39:50 -07:00
Corey Johnson & Nathan Sobo
abc230eee3 Fix bug: file finder correctly focuses editor after opening a file. 2012-05-14 16:35:03 -06:00
Corey Johnson & Nathan Sobo
9079bcb103 Meta-a selects everything 2012-05-14 16:18:37 -06:00
Corey Johnson & Nathan Sobo
d99a12b6cf Don't defer scroll after cursor changes position to make scrolling feel smoother 2012-05-14 15:42:31 -06:00
Corey Johnson
b35a2502c6 Gutter line numbers are rendered similarly to the scroll view's lines 2012-05-14 12:32:53 -07:00
Corey Johnson
5e4aef95d0 Only visible lines numbers are rendered by the gutter 2012-05-14 09:53:58 -07:00
Corey Johnson
95440cc9dc bufferRowsForScreenRows method on editor and renderer take start/end arguments 2012-05-14 09:53:58 -07:00
Corey Johnson
63e9af6109 LineMap.bufferRowsForScreenRows stops traversing line map when endScreenRow is exceeded 2012-05-14 09:53:58 -07:00