Max Brunsfeld
31c1ac412b
🎨 remove duplication in TokenizedBuffer::setGrammar
2015-05-13 21:23:20 -07:00
Max Brunsfeld
19d905606b
Avoid double computation of screen lines when opening files
...
Previously, instantiating a TextEditor would always compute compute
screen lines twice: once when the DisplayBuffer was instantiated,
and once when the 'invisibles' property was set on the DisplayBuffer.
2015-05-13 19:59:25 -07:00
Machiste Quintana
2bb2022b5b
👕
2015-04-07 00:05:19 -04:00
Machiste Quintana
5d2392ea67
👕 Fix new coffeelint errors
2015-04-06 23:59:54 -04:00
Kevin Sawicki
0691b837a1
Use new Model superclass in TokenizedBuffer
2015-04-06 11:25:35 -07:00
Kevin Sawicki
7d592c8b78
includeDeprecations -> includeDeprecatedAPIs
2015-04-03 11:29:16 -07:00
Kevin Sawicki
83b679dcc2
::subscribe -> CompositeDisposable
2015-04-03 11:29:15 -07:00
Kevin Sawicki
f916305538
Conditionally include deprecations in TokenizedBuffer
2015-04-03 11:29:12 -07:00
Kevin Sawicki
d9a5aff919
Add explicit return after for loop
2015-03-19 11:48:40 -07:00
Kevin Sawicki
cd5adb6ab7
Clear invalid rows when short-circuiting for null grammar
2015-03-17 17:41:22 -07:00
octref
ddb4556658
Don't tokenize on NullGrammar
...
For file format that Atom doesn't recognize as a
programming language, such as log files,
skip Tokenization since no syntax highlighting should be done.
2015-03-17 15:27:02 -04:00
Nathan Sobo
b2d322f531
🎨 Dry up buildTokenizedLineForRow methods on TokenizedBuffer
...
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2015-02-12 16:40:18 -07:00
Nathan Sobo
fc3d88aada
🐎 Auto-indent lines prior to inserting in buffer
...
Needs cleanup
Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com >
2015-02-12 16:21:45 -07:00
Nathan Sobo
f326c818fd
Update .foldable on tokenized lines based on indentation
2015-02-06 18:54:13 -07:00
Nathan Sobo
0081fa283e
Cache .foldable on tokenized lines based on block comments
...
Still need to handle indentation
2015-02-06 14:53:07 -07:00
Nathan Sobo
d93950a970
🎨
2015-02-06 13:40:38 -07:00
Nathan Sobo
a4f9413e6b
🎨
2015-02-06 13:31:04 -07:00
Max Brunsfeld
a1b4820c04
Revert "Revert "Merge pull request #4631 ""
...
This reverts commit dc2a453986 .
Conflicts:
spec/config-spec.coffee
src/config.coffee
2014-12-23 09:26:40 -08:00
Max Brunsfeld
dc2a453986
Revert "Merge pull request #4631 from atom/mb-new-config-api"
...
This reverts commit 5147fb6a8b , reversing
changes made to 9bbbb58084 .
2014-12-16 15:27:39 -08:00
Max Brunsfeld
2cea51b50e
Take 'scope' option in Config::onDidChange
...
Deprecate passing the scope as an optional first argument
2014-12-16 14:00:57 -08:00
Nathan Sobo
c58606907a
Make scope a trailing option to Config::get
2014-12-16 14:00:56 -08:00
Nathan Sobo
d53d01d95b
Replace atom.syntax with atom.grammars
2014-11-20 11:42:49 -07:00
Kevin Sawicki
19b0f760a1
Only re-tokenize lines when tab length changes
...
Closes #3929
2014-10-30 16:20:05 -07:00
Nathan Sobo
4d796f614c
Update Tokenized/DisplayBuffer prior to TextBuffer::onDidChange handlers
...
Fixes #3789
2014-10-27 13:56:23 -06:00
Ben Ogle
16ad957609
scopeDescriptor -> scopes
...
Now that we have a real ScopeDescriptor object,
these should change back!
2014-10-21 11:38:43 -07:00
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