Kevin Sawicki
34ca5ce949
nak no longer includes a space after the colon
2013-04-02 16:49:33 -07:00
Kevin Sawicki
699212a13e
Always pull line text from buffer
...
This accounts for positional changes that may occur if the marker
the operation is tracking moves.
2013-04-02 14:24:36 -07:00
Garen Torikian
7b0ce258d1
Merge branch 'nak-powered-search' of github.com:github/atom into nak-powered-search
2013-04-02 14:12:47 -07:00
Garen Torikian
7ab79d05f0
Merge master
2013-04-02 14:12:20 -07:00
Kevin Sawicki
1ee5eb32b4
Restore scan spec asserts now that leading space is gone
2013-04-02 14:10:30 -07:00
Kevin Sawicki
2ae5cacc6f
Un-f project spec
2013-04-02 13:25:21 -07:00
Kevin Sawicki
3cfbbc5d94
Attach to DOM in specs that alter the mini editor
...
This is now required since populateList() is only
calls when the timeout is fired and the select list
is still on the DOM.
2013-04-02 13:22:46 -07:00
probablycorey
ecb159738f
Rename singleTrailingNewline to ensureSingleTrailingNewline
2013-04-01 10:44:34 -07:00
Garen Torikian
6f982c7c4c
Fix spec
2013-03-31 01:11:19 -07:00
Garen Torikian
f48355ce10
Merge branch 'nak-nostream' into nak-powered-search
2013-03-31 00:45:14 -07:00
Kevin Sawicki
19162db3ce
Clip TextBuffer.characterIndexForPosition() position
2013-03-30 00:47:19 -04:00
Kevin Sawicki
da090b57d4
Use line ending length for mapping positions/characters
...
Previously the line ending length was hard-coded to one which
would cause TextBuffer.scanInRange() to return incorrect results
since one character per line wasn't being accounted for.
Closes #428
2013-03-30 00:30:54 -04:00
Kevin Sawicki
dc3b26c934
Add missing 't' in spec file name
2013-03-29 23:55:31 -04:00
probablycorey
d3920cdc05
Click and drag on the gutter selects lines correctly
...
Closes #352
2013-03-29 17:58:27 -07:00
probablycorey
05336dc38c
Fix atom.version spec
2013-03-29 15:24:27 -07:00
Corey Johnson & Nathan Sobo
7d9e64a52d
Mock getMaxTokensPerLine instead of overwriting member var
2013-03-29 11:22:01 -07:00
Kevin Sawicki
8e9a7355bc
Return an empty array when the fs-utils.list() path isn't a directory
...
This makes the common case of iterating over an array of paths and
listing them cleaner since the return value doesn't need to be checked
before it is iterated over.
2013-03-29 13:44:03 -04:00
Kevin Sawicki
ff471ebf5b
💄
2013-03-28 22:08:53 -04:00
Kevin Sawicki
bd48cfced0
Don't track ctrl-click as the start of a selection
...
Closes #396
2013-03-28 22:06:56 -04:00
probablycorey
aab50d3c2c
Only parse the first 100 tokens of a line
...
This fixes the UI thread lockup when there is a gigantic line in a
file (like minified js). I took a stab at making line tokeninization
async on the atom/async-single-line-tokenization branch, but it was
still too slow.
Closes #150
2013-03-28 17:14:45 -07:00
Garen Torikian
9e3935f349
Fix scan specs
2013-03-28 12:09:14 -07:00
Kevin Sawicki
d54f2e6eab
Only track selections that start with a left-click
...
Closes #396
2013-03-27 21:06:56 -04:00
probablycorey
72f57ad993
Remove old grammar view files
2013-03-27 17:34:14 -07:00
probablycorey
fd7772a653
Reset scrollLeft when setSoftWrapColumn is called
...
When the scroll view is scrolled and overflow-x is set to
'hidden' the scroll view renders wrong. Setting scrollLeft to 0 fixes
this problem. I'm unhappy with this solution, but it was a
simple way to get the scroll view to update its layout.
Closes #137
2013-03-27 15:13:55 -07:00
probablycorey
a48a52922b
Indent soft-wrap spec correctly
2013-03-27 15:13:55 -07:00
Kevin Sawicki
1d84274973
Return existing selections from addSelection()
...
Previously if a selection was added and then merged
away the selection-added event would still fire even
though the selection was already destroyed.
Now the existing selection that intersects with the
range is returned when the merge destroys the new selection.
Closes #374
2013-03-27 17:59:55 -04:00
probablycorey
a1b82e9dad
Allow mini-editors to explicitly set their grammars
2013-03-27 11:00:53 -07:00
Cheng Zhao
b5be1c378a
Replace Task's implementation with ProcessTask.
2013-03-27 12:25:54 +08:00
Cheng Zhao
142824ec01
Add test for ProcessTask.
2013-03-27 12:25:54 +08:00
Nathan Sobo
d3fa24be57
Remove scoped-properties when deactivating a TextMate package
2013-03-26 17:35:45 -06:00
Nathan Sobo
6a5ca3805e
Spec loading of scoped properties when activating TextMate packages
2013-03-26 17:35:44 -06:00
Nathan Sobo
eef13e7db8
Test that deferred packages don't require their main module
...
As opposed to asserting that the main module isn't present, which
might not be true if a previous spec required it.
2013-03-26 17:35:44 -06:00
Nathan Sobo
e32d7b1ff1
Remove unused test.tmbundle
2013-03-26 17:35:44 -06:00
Nathan Sobo
1f74b5ccb4
Rename textmate package w/ invalid snippets
2013-03-26 17:35:44 -06:00
Nathan Sobo
a07cd87c2c
Move testing of deferred deserializers to atom-spec
2013-03-26 17:35:44 -06:00
Nathan Sobo
2fe057bd9b
Move deferred activation specs to atom-spec
2013-03-26 17:35:44 -06:00
Corey Johnson & Nathan Sobo
81d4b764b8
Remove a package's scoped-properties when it is deactivated
...
Also: don't add the properties until `activate` is called. Previously
we were still adding the properties in the `load` method, which was
wrong.
2013-03-26 17:35:44 -06:00
Corey Johnson & Nathan Sobo
c8ec73d2f0
Allow scoped-properties to be added/removed by name
...
Also:
- remove "global" properties
- clear scoped properties between specs
2013-03-26 17:35:44 -06:00
Corey Johnson & Nathan Sobo
368e10a9f5
Move spec for scoped property loading to atom-spec
2013-03-26 17:35:44 -06:00
Corey Johnson & Nathan Sobo
3c561ef208
💄
2013-03-26 17:35:44 -06:00
Corey Johnson & Nathan Sobo
c8b9622bf4
Move specs for loading config defaults to atom-spec
2013-03-26 17:35:44 -06:00
Corey Johnson & Nathan Sobo
5d822b7305
Remove a package's stylesheets when it is deactivated
2013-03-26 17:35:43 -06:00
Corey Johnson & Nathan Sobo
1e51750b6c
Remove a package's keymaps when it is deactivated
2013-03-26 17:35:43 -06:00
Corey Johnson & Nathan Sobo
5410e9368f
Add ability to add/remove keymaps by name
2013-03-26 17:35:43 -06:00
Corey Johnson & Nathan Sobo
772787121c
Remove atom package grammars on deactivate
2013-03-26 17:35:43 -06:00
Corey Johnson & Nathan Sobo
c1954d869a
Add tests for TextMateGrammar@loadSync
2013-03-26 17:35:43 -06:00
Corey Johnson & Nathan Sobo
d37fbd43f1
Test that atom packages load their grammars
2013-03-26 17:35:43 -06:00
Corey Johnson & Nathan Sobo
de7d9bfcb1
Get deactivatePackage specs passing w/ new fixture data
2013-03-26 17:35:43 -06:00
Corey Johnson & Nathan Sobo
8c1f5658be
Allow packages to have stylesheet manifests
2013-03-26 17:35:43 -06:00
Corey Johnson & Nathan Sobo
b846a4db98
wip: cleanup package lifecycle specs
2013-03-26 17:35:43 -06:00