Kevin Sawicki
31dd109343
Add Editor::onDidDestroy
2014-09-18 11:51:44 -07:00
Kevin Sawicki
c37e4649b5
Only call replace on string arguments
...
Prevents errors being thrown when trying to call replace on non-string
arguments.
2014-09-18 11:31:29 -07:00
Kevin Sawicki
3fb22f123a
Don't throw errors when folding comments
...
Previously trying to fold single line comments at the start/end
of files would throw errors since the +1 and -1 used in the
index ranges would cause the loop to advance past the last row
or before the first row.
2014-09-18 11:06:25 -07:00
Ben Ogle
8448b265d5
Merge pull request #3549 from atom/bo-visibility-split
...
Add sections and split methods into essential / extended API
2014-09-17 16:51:50 -07:00
Nathan Sobo
d36c738b07
Merge pull request #3469 from atom/ns-command-registry
...
Add command registry
2014-09-17 14:55:19 -06:00
Kevin Sawicki
f1fd13b0b2
Return as soon as first paired character is found
...
Previously the character count of the entire string was taken even
though it was only checking for the presence of a paired character.
Now hasPairedCharacter returns as early as possible and the now
unused getCharacterCount has been removed.
2014-09-17 10:35:33 -07:00
Kevin Sawicki
e343b0e0fc
Don't treat consecutive variation selectors as a sequence
2014-09-17 10:17:27 -07:00
Kevin Sawicki
3acddf3e71
📝 Drop text
2014-09-17 10:17:26 -07:00
Kevin Sawicki
df68ae26a2
Add specs for variation sequences
2014-09-17 10:17:26 -07:00
Kevin Sawicki
fb7061f500
📝 Mention variation sequence in specs
2014-09-17 10:17:26 -07:00
Kevin Sawicki
878da262d2
Add support for Unicode variation sequences
...
These are character pairs that should be treated as tokens with a
buffer delta of 2 and a screen delta of 1.
2014-09-17 10:17:26 -07:00
Kevin Sawicki
36f60c517e
Assert other whitespace class is not present
2014-09-17 09:50:55 -07:00
Kevin Sawicki
348f865cab
Add spec for all whitespace lines
2014-09-17 09:47:49 -07:00
Kevin Sawicki
18f54e6780
💄 Put leading spec first
2014-09-17 09:42:31 -07:00
Kevin Sawicki
b281737838
Add leading/trailing classes to hard tab tokens
...
Previously the leading-whitespace and trailing-whitespace classes
were never added to tokens that were hard tabs.
2014-09-17 09:42:31 -07:00
Ben Ogle
c0dd53104a
Make a managing the atom window section
...
de-public the get/setWindowDimensions in favor of
the (get|set)(Size|Position)
2014-09-16 11:37:11 -07:00
Ben Ogle
f12b70e3b7
Editor::onDidChangeScreenLines -> onDidChange
2014-09-16 10:51:32 -07:00
Nathan Sobo
eb97154c94
Merge remote-tracking branch 'origin/master' into ns-command-registry
2014-09-16 10:27:00 -06:00
Nathan Sobo
a069f34ad6
Fix CommandRegistry::findCommands spec
...
Don’t assert against commands registered on the window with jQuery
2014-09-16 09:23:52 -06:00
Nathan Sobo
a0edb92e16
Rename editor.softWrapped config option back to editor.softWrap
2014-09-15 14:34:35 -06:00
Kevin Sawicki
8c2bcf3943
Catch and log deactivate errors
...
Closes #3538
2014-09-15 08:34:54 -07:00
Kevin Sawicki
e6252546c4
Set initialLoadComplete to true in specs
2014-09-11 15:49:44 -07:00
Nathan Sobo
8f9cf3c790
Set the atom.commands root node to document.body in beforeEach
2014-09-11 14:17:45 -06:00
Nathan Sobo
99cf8fabc0
Clear atom.commands after each spec
2014-09-11 14:13:48 -06:00
Nathan Sobo
3e0e19d51b
Add CommandRegistry::findCommands
2014-09-11 13:48:35 -06:00
Nathan Sobo
155fb675ec
💄 group dispatch specs
2014-09-11 13:48:35 -06:00
Nathan Sobo
43d3082d4e
Allow multiple commands to be registered by passing an object
2014-09-11 13:48:35 -06:00
Nathan Sobo
aee33fc126
Pass selector first to CommandRegistry::add
2014-09-11 13:48:35 -06:00
Nathan Sobo
4de0865d28
Allow listeners to be removed via a Disposable returned from ::add
2014-09-11 13:48:34 -06:00
Nathan Sobo
fe27ebec1b
Handle .stopImmediatePropagation() being called on command events
2014-09-11 13:48:34 -06:00
Nathan Sobo
fbaf956e1f
Handle .stopPropagation() being called on command events
2014-09-11 13:48:34 -06:00
Nathan Sobo
5eb22520f1
Order multiple matching listeners by selector specificity
2014-09-11 13:48:34 -06:00
Nathan Sobo
a075aa2b07
Perform synthetic bubbling through event target ancestors
2014-09-11 13:48:34 -06:00
Nathan Sobo
decc983420
Start on CommandRegistry
2014-09-11 13:48:34 -06:00
Ben Ogle
04c0824822
Fix / clean up specs
2014-09-11 11:28:21 -07:00
Ben Ogle
f38fb2a924
nof
2014-09-11 11:11:15 -07:00
Ben Ogle
f39114a95c
Subscribe to items via event methods.
...
Add deprecation warnings when they don’t return a disposable
2014-09-11 10:48:03 -07:00
Ben Ogle
c1f8065caf
Use the new split*() methods on Pane model in WorkspaceView specs
2014-09-10 17:41:38 -07:00
Ben Ogle
6e3c945fa2
Use event methods for theme subscriptions
2014-09-10 17:26:08 -07:00
Nathan Sobo
d55f5cba78
Upgrade first-mate for event subscription methods
2014-09-10 17:24:55 -06:00
Ben Ogle
d3b3fdefc9
Merge pull request #3507 from atom/bo-rename-events
...
Rename the rest of the internal events to the onDid* pattern
2014-09-10 12:11:26 -07:00
Ben Ogle
40b32930cf
Revert "Add Project::onDidCreateBuffer"
...
This reverts commit 4070e5fb25 .
2014-09-10 11:55:41 -07:00
Ben Ogle
61fa1c4230
Revert "Add Project::observeBuffers"
...
This reverts commit b6fe72ef9e .
Conflicts:
src/project.coffee
2014-09-10 11:55:26 -07:00
Kevin Sawicki
883f7e1f5a
Use cross-platform path in specs
2014-09-10 10:22:48 -07:00
Ben Ogle
5ba5215f5d
Add event subscription methods to ThemeManager
2014-09-09 15:35:00 -07:00
Ben Ogle
3bf348e51f
Add ThemeManager::onDidReloadAll
2014-09-09 15:24:55 -07:00
Ben Ogle
0afd8a1392
Add Package::onDidDeactivate
2014-09-09 15:09:18 -07:00
Ben Ogle
ae4f92cc52
Add onDidChangeStatuses
2014-09-09 14:45:31 -07:00
Ben Ogle
05f54d427d
Add Git::onDidChangeStatus
2014-09-09 14:28:30 -07:00
Ben Ogle
b6fe72ef9e
Add Project::observeBuffers
2014-09-09 14:13:26 -07:00