Antonio Scandurra
e513ed3a11
WIP: Always enable soft-wrapping
2016-03-14 18:43:27 +01:00
Antonio Scandurra
8c3ab52b64
Pass showIndentGuides config to DisplayLayer
2016-03-10 19:17:28 +01:00
Antonio Scandurra
40beb0bd1e
Use new TextBuffer APIs
2016-03-10 16:00:56 +01:00
Antonio Scandurra
dfed7c4537
Merge branch 'master' into ns-use-display-layers
...
# Conflicts:
# package.json
# src/display-buffer.coffee
# src/text-editor.coffee
# src/tokenized-buffer.coffee
2016-03-10 13:53:14 +01:00
Antonio Scandurra
bea324eae9
🔥 Use just isFoldableAtBufferRow
2016-02-17 15:05:31 +01:00
Antonio Scandurra
012fa354c4
Add TokenizedBuffer.prototype.foldableRowsForRowRange
2016-02-17 10:34:21 +01:00
Nathan Sobo
07f35818f8
Pass invisibles configuration into DisplayLayer
2016-01-26 17:43:36 -07:00
Nathan Sobo
21b1f79fab
Avoid updating screen lines in DisplayBuffer
2016-01-19 14:51:24 -07:00
Nathan Sobo
acbacae6d5
Use TokenizedBuffer as a text decoration layer and render tags
2016-01-13 18:23:22 -07:00
Nathan Sobo
972fda4ef7
Start using DisplayLayer for folds
2016-01-13 12:17:01 -07:00
Nathan Sobo
caf6d7f473
Use DisplayMarkerLayers
...
I’m creating the DisplayLayer in the DisplayBuffer. In places where our
API deviates from DisplayBuffer, I’ll use the DisplayLayer directly from
as a property of TextEditor. Otherwise I’ll continue to delegate from
the DisplayLayer into the DisplayLayer to minimize impact until the
DisplayBuffer can be removed entirely.
2016-01-13 12:17:01 -07:00
Max Brunsfeld
b01e97be59
Explicitly guard against decorating destroyed markers
...
Signed-off-by: Nathan Sobo <nathan@github.com >
2016-01-11 14:01:55 -08:00
Nathan Sobo
213e7d0b35
Schedule marker updates with nextTick instead of setImmediate
...
From what I understand, nextTick callbacks actually happen at the end
of the current event loop cycle rather than the next one. The naming is
confusing.
2015-11-09 00:35:33 -07:00
Nathan Sobo
e9dfc080a3
Convert text-editor-component-spec to Babel for async/await
...
It's much easier to reason about async/await than Jasmine's
built-in queuing system, and using them made it easier to
debug flaky async tests.
2015-11-09 00:35:32 -07:00
Nathan Sobo
533146bc6a
Document new APIs
2015-11-09 00:35:32 -07:00
Nathan Sobo
9714f2e729
Emit decoration events synchronously in legacy spec environment
...
This is needed to keep a bunch of package tests passing that expect
synchronous decoration updates.
2015-11-09 00:35:31 -07:00
Nathan Sobo
2f81e5faac
Store folds in their own marker layer
2015-11-09 00:35:31 -07:00
Nathan Sobo
29bb1bb31b
Add TextEditor-level marker layers and use them for selections
2015-11-09 00:35:31 -07:00
Nathan Sobo
1ee6384332
Add TextEditorMarkerLayer
2015-11-09 00:35:31 -07:00
Nathan Sobo
b1a5b58fa2
Rename Marker to TextEditorMarker to resolve ambiguity w/ TextBuffer API
...
We expose both kinds of markers in Atom, and the docs were actually
wrong when we refer to Markers from TextBuffer because it linked to the
TextEditor layer’s Marker implementation. This will clarify the
difference.
2015-11-09 00:35:30 -07:00
Nathan Sobo
a3ff0ad75a
🎨 Rename method
2015-11-09 00:35:28 -07:00
Nathan Sobo
75d0a0820c
Allow properties to be overridden for a single marker in LayerDecoration
2015-11-09 00:35:28 -07:00
Nathan Sobo
acf142863c
Add TextEditor::decorateMarkerLayer
2015-11-09 00:35:27 -07:00
Nathan Sobo
92ed7c8b15
Don’t return Decoration objects from model to view
...
Preparation for LayerDecorations, in which individual decoration objects
won’t exist for every marker.
2015-11-09 00:35:27 -07:00
Max Brunsfeld
cdaac9dfcc
wip
2015-11-09 00:35:18 -07:00
Antonio Scandurra
7d97241f35
🎨
2015-11-06 17:41:00 +01:00
Antonio Scandurra
dd10216943
🐎 Make LanguageMode::unfoldAll faster
2015-11-06 13:16:09 +01:00
Antonio Scandurra
05c6c9f9be
Soft wrap only when we know lineMaxWidth
2015-10-16 11:14:20 +02:00
Antonio Scandurra
e843c2f058
🐎 Fetch scopes only if required
2015-10-16 11:03:15 +02:00
Antonio Scandurra
b03aa4bf40
Merge branch 'master' into as-cjk-soft-wrap
...
# Conflicts:
# spec/display-buffer-spec.coffee
2015-10-16 10:23:44 +02:00
Antonio Scandurra
4766c98bbe
Treat Korean characters as different kinds of chars
2015-10-15 21:02:21 +02:00
Antonio Scandurra
c616e86a00
Take into account half width chars as well
2015-10-15 19:24:00 +02:00
Antonio Scandurra
91e9f16ff6
💚
2015-10-15 19:22:12 +02:00
Antonio Scandurra
abf306943a
🐛 Measure latin chars with subpixel font scaling
2015-10-15 18:49:54 +02:00
Antonio Scandurra
43229a1b9e
🎨
2015-10-15 18:35:49 +02:00
Antonio Scandurra
4818d47980
Update wrapped screen lines when default width changes
2015-10-15 18:10:26 +02:00
Antonio Scandurra
27dc3da9e5
🎨 Conflate setting default and double-width chars width
...
Because they will always change together, and having two different setters seems
highly error-prone.
2015-10-15 17:53:37 +02:00
Antonio Scandurra
c2ee942df1
Take double width chars into account when soft wrapping
2015-10-15 16:24:08 +02:00
Antonio Scandurra
3c33a7ba9f
Soft wrap based on default character width
2015-10-15 15:22:18 +02:00
Nathan Sobo
4c51d29868
Merge remote-tracking branch 'origin/master' into ns-alternative-test-env
2015-10-07 16:10:29 -05:00
Antonio Scandurra
df2d73a8df
Don't use atom globals in TokenizedBuffer
2015-10-07 15:25:02 -05:00
Nathan Sobo
122bf72c75
Don’t use atom.packages global in TokenizedBuffer
2015-10-07 15:25:00 -05:00
Nathan Sobo
b2359f44a6
Don’t use atom.grammars global in TokenizedBuffer
2015-10-07 15:25:00 -05:00
Nathan Sobo
4f65452902
Don’t use atom.config global in TokenizedBuffer
2015-10-07 15:24:59 -05:00
Nathan Sobo
dc0709ef9e
Don’t use atom.assert global in DisplayBuffer
2015-10-07 15:24:59 -05:00
Nathan Sobo
edd666b845
Don’t use atom.config global in DisplayBuffer
2015-10-07 15:24:59 -05:00
Antonio Scandurra
72093da1a7
🔥 🎉 Remove scoped character width
2015-09-29 17:32:20 +02:00
Antonio Scandurra
a0277728d6
🔥 Remove deprecated methods
2015-09-25 12:58:23 +02:00
Antonio Scandurra
ce714b9852
🎨 Rename to ::onDidRequestAutoscroll
2015-09-25 10:57:09 +02:00
Antonio Scandurra
535a9da946
wip
2015-09-24 11:21:26 +02:00