Lee Dohm
a2c9c21cfb
Change line commenting to ignore blanks if any non-blanks
...
Fixes #2526
This slightly alters the heuristic for deciding whether to uncomment
or to comment blocks of code. Previously, it would key off the first
line of code and only if that was commented would it check the other
lines. Now it checks all lines of code and uncomments the block if all
non-blank lines are commented out.
2014-06-09 21:31:46 -07:00
Lee Dohm
ea4f99e5ac
Add test to illustrate the problem
...
See #2526
2014-06-09 21:18:03 -07:00
Kevin Sawicki
24a463b18d
Upgrade to find-and-replace@0.115
2014-06-09 17:08:57 -07:00
Kevin Sawicki
3d28a04ffa
Upgrade to command-palette@0.22
2014-06-09 16:43:30 -07:00
Ben Ogle
326542644d
Upgrade git-diff@0.29.0 bookmarks@0.23.0
2014-06-09 16:33:27 -07:00
Ben Ogle
45f70bb783
Merge pull request #2507 from atom/bo-gutter-api
...
Add an API for decorations; render stuff in the gutter again
2014-06-09 16:30:48 -07:00
Ben Ogle
5db163a328
💄
2014-06-09 16:01:29 -07:00
Kevin Sawicki
4d12e025e4
Upgrade to archive-view@0.32
2014-06-09 15:50:26 -07:00
Ben Ogle
756347a716
Add has-selection
class to the editor div when there is a selection
2014-06-09 15:45:32 -07:00
Kevin Sawicki
4b02d3ff61
Upgrade to tree-view@0.99
2014-06-09 15:33:47 -07:00
Ben Ogle
dc6836dc2d
Add specs for cursor-line decorations
2014-06-09 15:18:12 -07:00
Ben Ogle
2087426afc
Specs for decorationsForBufferRow
2014-06-09 15:05:43 -07:00
Kevin Sawicki
b703ca0ebf
Upgrade to markdown-preview@0.76
2014-06-09 15:04:32 -07:00
Ben Ogle
6c609cb7d2
Revert "Move setImmediate into requestUpdate; Batch updates"
...
This reverts commit ad522e6ab1
.
2014-06-09 14:45:43 -07:00
Ben Ogle
ad522e6ab1
Move setImmediate into requestUpdate; Batch updates
2014-06-09 14:40:59 -07:00
Ben Ogle
e59f242f19
Move click gutter into the GutterComponent
2014-06-09 14:11:41 -07:00
Ben Ogle
bae625a894
Add spec for when lines become foldable
2014-06-09 14:04:24 -07:00
Ben Ogle
b5532ee4a3
💄 spec
...
Use the event system to click on the gutter
2014-06-09 14:04:24 -07:00
Ben Ogle
31b4b7a372
Speed up decoration removal and use less temp objects.
2014-06-09 14:04:24 -07:00
Ben Ogle
1a1ed56419
Oh man. Render only once!
2014-06-09 14:04:24 -07:00
Ben Ogle
13be8d5139
Add a cursor-line decoration to the gutter
2014-06-09 14:04:24 -07:00
Ben Ogle
312901ff68
Use decorations for folds.
...
They are more efficient when re-rendering.
2014-06-09 14:04:24 -07:00
Ben Ogle
346b6007ca
Allow for typeless decorations that apply to everything
...
If you are querying for `type: ‘gutter’` it will return the typeless
decorations as well.
2014-06-09 14:04:24 -07:00
Ben Ogle
a8df77243c
Fix spec
...
I changed the width of the gutter in b0af7cfc12729e9ef1320c0b178cc024bc0e60cc
16 characters is still within the break range of the word 'wraps'
2014-06-09 14:04:23 -07:00
Ben Ogle
f30641da44
💄 Remove log line.
2014-06-09 14:04:23 -07:00
Ben Ogle
049531e495
Add comment
2014-06-09 14:04:23 -07:00
Ben Ogle
e8594ccec4
💄 Change var names for consistency
2014-06-09 14:04:23 -07:00
Ben Ogle
65ab436da2
API docs
2014-06-09 14:04:23 -07:00
Ben Ogle
e7bd8026d2
Deprecate old class functions
2014-06-09 14:04:23 -07:00
Ben Ogle
d9e731c84a
Update styles on the foldable icons
2014-06-09 14:04:23 -07:00
Ben Ogle
8e1e5a3760
Add ability to click the fold icons
2014-06-09 14:04:23 -07:00
Ben Ogle
02594e3f7a
💄 Use for loops
2014-06-09 14:04:23 -07:00
Ben Ogle
da5bf6c74c
Defensive on the decorations
2014-06-09 14:04:23 -07:00
Ben Ogle
5cd8f5952f
Make editor push decorator updates to the gutter
2014-06-09 14:04:23 -07:00
Ben Ogle
1b8be75a76
Add specs for the editor interface
...
for decorations in ranges and associated with markers
2014-06-09 14:04:23 -07:00
Ben Ogle
235180cf03
Add specs for fold rendering
2014-06-09 14:04:23 -07:00
Ben Ogle
a13990155f
Use setImmediate rather than setTimeout
2014-06-09 14:04:23 -07:00
Ben Ogle
a72f11594d
💄 remove decoratorType instance var
2014-06-09 14:04:23 -07:00
Ben Ogle
86d7a45a78
Remove the comment about overlap
...
Turns out it’s already dealing with overlap by not emitting events
when there is an overlap.
2014-06-09 14:04:22 -07:00
Ben Ogle
a229d696d5
Add addDecorationForBufferRowRange
and related remove
2014-06-09 14:04:22 -07:00
Ben Ogle
ef6ca3853d
💄
2014-06-09 14:04:22 -07:00
Ben Ogle
9e86d5f5f1
💄 Clean up based on feedback
2014-06-09 14:04:22 -07:00
Ben Ogle
3ef91c61d9
Add api for getStartBufferPosition and related fns
2014-06-09 14:04:22 -07:00
Ben Ogle
5bae58eeb1
Clean up specs based on feedback.
2014-06-09 14:04:22 -07:00
Ben Ogle
6ce859774a
Name changes
2014-06-09 14:04:22 -07:00
Ben Ogle
fa4a6e2d71
Nof
2014-06-09 14:04:22 -07:00
Ben Ogle
9ee54801a2
Implement removeDecorationsForMarker
2014-06-09 14:04:22 -07:00
Ben Ogle
79578e08ab
Specs for marker decorations
2014-06-09 14:04:22 -07:00
Ben Ogle
732e23b8ea
Add initial addDecorationForMarker()
2014-06-09 14:04:22 -07:00
Ben Ogle
d51894103d
Debounce the rendering of decorations
2014-06-09 14:04:22 -07:00