Ben Ogle
137eeab4cf
Return scopes arrays from deprecated methods
...
backward compatibility
2014-10-21 11:19:58 -07:00
Ben Ogle
14c8e9cedc
Fix specs
2014-10-20 18:40:32 -07:00
Ben Ogle
ce2959c0b9
Return ScopeDescriptor objects
2014-10-20 17:49:02 -07:00
Ben Ogle
c0091b4601
scopes -> scopeDescriptor
...
!!!
2014-10-13 16:30:41 -07:00
Ben Ogle
8cf36af1dc
scopesForPosition -> scopeDescriptorForPosition
2014-10-13 16:18:36 -07:00
Ben Ogle
b0de88de74
grammarScopeDescriptor -> rootScopeDescriptor
2014-10-13 16:15:05 -07:00
Ben Ogle
9a41b5050e
Cache the editor.tabLength config value
2014-10-13 12:34:06 -07:00
Ben Ogle
c315631efd
Remove scopeDescriptor from getTabLength
2014-10-08 16:01:42 -07:00
Ben Ogle
f662b3d745
💄 Normalize the names of related subscription things
2014-10-08 16:01:41 -07:00
Ben Ogle
857fd5eaf4
Retokenize when setTabLength() was called.
2014-10-08 16:01:40 -07:00
Ben Ogle
8cd217e50a
Handle changes to the tabLength setting
2014-10-08 16:01:40 -07:00
Ben Ogle
339cb02269
Scope editor.tabLength
2014-10-08 16:01:40 -07:00
Ben Ogle
9808264b7f
Fix onDidChange usage
2014-09-29 16:09:49 -07:00
Ben Ogle
e607d45f0d
Remove instances of getPositiveInt()
2014-09-29 16:09:47 -07:00
Nathan Sobo
d55f5cba78
Upgrade first-mate for event subscription methods
2014-09-10 17:24:55 -06:00
Ben Ogle
0a920b18d7
Update TokenizedBUffer::on deprecations
2014-09-05 12:40:33 -07:00
Ben Ogle
a2adbff3e9
Add TokenizedBuffer::onDidTokenize
2014-09-05 12:33:28 -07:00
Ben Ogle
48a68d87f5
Add TextBuffer::onDidChange
2014-09-05 12:26:54 -07:00
Nathan Sobo
1c95a55740
Add ::onDidChangeGrammar to Editor, DisplayBuffer, and TokenizedBuffer
2014-09-05 11:39:33 -07:00
Nathan Sobo
a947a357f4
Upgrade text-buffer for event subscription methods
2014-09-04 12:44:53 -06:00
Ben Ogle
e3a0339fe3
Editor::lineForScreenRow -> ::tokenizedLineForScreenRow
2014-09-03 14:42:46 -07:00
Ben Ogle
cdbbec91f0
row -> bufferRow for clarity
2014-09-03 14:42:45 -07:00
Ben Ogle
dbb0ff9830
Remove unused method
2014-09-03 14:42:45 -07:00
Ben Ogle
99f899dc4a
lineForScreenRow -> tokenizedLineForRow
...
The method was severely mislabeled
2014-09-03 14:42:45 -07:00
Nathan Sobo
2bd8456923
Preserve invisibles in editor model across serialization
...
Fixes #3281
2014-08-15 08:18:53 -06:00
Nathan Sobo
20daed176b
Don't show invisibles in mini editors
...
This moves observation of the config keys to Editor, which assigns the
invisibles hash or null on the TokenizedBuffer via the DisplayBuffer to
control whether we render invisibles or not.
2014-08-13 16:32:14 -06:00
Nathan Sobo
986753981d
Use config defaults to assign default invisible characters
2014-08-13 16:32:13 -06:00
Nathan Sobo
742ec6df0d
Determine the endOfLineInvisibles for each TokenizedLine
2014-08-13 16:31:39 -06:00
Nathan Sobo
2daf70f0e5
Handle invisibles at the token level to fix char width measurement
...
Fixes #3188
2014-08-13 16:31:39 -06:00
Nathan Sobo
2878196e0a
Make React editor indent guide work like it did in the old editor
...
Fixes #2367
* The indent level of empty lines is the *max* of the nearest non empty
line, rather than favoring the level of the line below.
* An extra wrap guide is no longer rendered for empty lines
I didn't port the specs over because we already had good coverage at the
model level. It just needed to be updated for the preferred behavior.
2014-07-07 17:59:26 -06:00
Ben Ogle & Nathan Sobo
4642d96f39
Tokenize empty lines with a changed indent level synchronously
2014-07-01 10:54:37 -07:00
Ben Ogle
de2930fe99
💄
2014-07-01 10:54:37 -07:00
Ben Ogle
43e88f6515
Invalidate whitespace lines when their indent level changes
...
Refs #2376
2014-07-01 10:54:36 -07:00
probablycorey
89dc5f26ad
Only emit the tokenized event after the first full tokenization
2014-05-28 15:56:08 -07:00
probablycorey
c56ac70181
Add tokenized event to tokenized buffer
2014-05-28 14:53:38 -07:00
Kevin Sawicki
4f2d935a1d
Reload grammar on path changed in TokenizedBuffer
2014-05-27 12:58:17 -07:00
Corey Johnson
c03dec2783
Merge remote-tracking branch 'origin/master' into cj-add-deprecation-warning-to-specs
2014-04-23 16:51:14 -07:00
Corey Johnson
1de2c14e50
Use TextBuffer::getEndPosition
2014-04-23 16:30:38 -07:00
David Graham & Nathan Sobo
6997adece9
Associate TokenizedLines with an ::indentLevel
...
This can be used to render the appropriate number of indent guide spans
for empty lines.
2014-04-22 17:09:39 -06:00
Kevin Sawicki
68c2c18d83
Don't allow the tab length to go below 1
...
Closes #1751
2014-03-12 18:00:11 -07:00
Kevin Sawicki
227454e27e
Remove ### style visibility comments
2014-02-06 10:40:45 -08:00
Nathan Sobo
3ab7836ab2
Upgrade to emissary 0.31.0 for implicit 'value' subscriptions on signals
...
Previously, when you always had to specify the event name of 'value'
when calling `::subscribe` with a signal. Now, if you don't specify an
event name, 'value' is assumed.
2014-01-11 11:22:31 -07:00
Nathan Sobo
cbec03c158
Rename reactionary to theorist
2014-01-05 10:25:59 -07:00
Nathan Sobo
8da9e8ddc1
Rename nostalgia to serializable
...
This name was surprisingly available and better matches this module's
utilitarian nature.
2014-01-03 18:32:44 -07:00
Nathan Sobo
821debcb85
Make Editor, DisplayBuffer, TokenizedBuffer to not use telepath
...
This commit introduces dependency on a new npm called
[reactionary](https://github.com/atom/reactionary ). It will serve as a
*much* lighter weight model framework to provide the reactive features
of telepath without the replication logic.
Specs are still failing for panes and workspace. I plan to just roll
forward and remove the telepath dependency from them as well.
2013-12-31 18:19:53 -07:00
Nathan Sobo
779c918179
Reorder requires
2013-12-07 14:03:07 -08:00
Nathan Sobo
ee1f21439d
Merge branch 'ns-latest-telepath' into ns-teleditor
2013-12-07 13:59:35 -08:00
Kevin Sawicki
34f71a2623
Observe editor.tabLength config in TokenizedBuffer
...
Closes #1224
2013-12-07 11:43:48 -08:00
Nathan Sobo
f4d19810b8
💄
2013-12-07 03:07:02 -08:00
Nathan Sobo
a4d2b4d21a
Make TokenizedBuffer a telepath.Model subclass
...
There's a bunch of improvised code to make this work right now because
of the circularity of this refactoring. It will stabilize over time.
2013-12-07 02:25:47 -08:00