Nathan Sobo
b667ba4262
If selection is empty when toggling a line comment, keep it empty
2012-06-04 11:50:48 -06: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
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
1a9566d954
Merge branch 'master' into binding-viewer
2012-05-31 15:55:23 -07:00
Corey Johnson
130361fc1c
Keybinding view is an extension
2012-05-31 15:54:40 -07:00
Corey Johnson
1d1eeb5c09
meta-w is a global keybinding
2012-05-31 15:26:59 -07:00
Corey Johnson
516de1ede1
Merge branch 'master' into structural-folding
2012-05-31 11:46:23 -07:00
Corey Johnson
2df7c26353
Folding works with coffeescript
2012-05-31 11:30:06 -07:00
Corey Johnson
5ca1831794
💄
2012-05-31 11:29:44 -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
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
84318277ba
FoldSuggester can return a row range of a foldable syntactic region starting at a given row
2012-05-30 16:01:21 -06:00
Corey Johnson & Nathan Sobo
e10383a9e9
Add Highlighter.findClosingBracket
...
Takes a position, and finds the position of the closing bracket that matches the opening bracket at that position. Only works with curly-braces for now.
2012-05-30 15:58:59 -06:00
Corey Johnson & Nathan Sobo
a7262d0f3b
Sometimes there is no ace folding mode
2012-05-30 14:01:49 -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
46e94b33d4
💄
2012-05-30 10:20:39 -07:00
Nathan Sobo
c291cd1bb3
Cache hidden/visible state of cursor to avoid extra DOM hit when updating its appearance
2012-05-30 10:51:27 -06:00
Corey Johnson
cbf5c5d16c
ctrl-? brings up keybindings for focused view.
...
it is very ugly.
2012-05-29 17:59:00 -07:00
Corey Johnson
893564945e
Add rootView.activeKeybindings().
...
This will return all active keybindings available for the focused element.
2012-05-29 15:46:38 -07:00
Corey Johnson
64bd26a392
Add Keymap.bindingsForElement method
2012-05-29 14:15:54 -07:00