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
Kevin Sawicki
b6334483c9
Hide the loading message when eval throws an error
2013-03-27 15:43:09 -04:00
Kevin Sawicki
7f8adf247e
Show root view events when no element has focus
...
Closes #327
2013-03-27 14:28:18 -04:00
Kevin Sawicki
4c9ebc940c
Remove unneeded initialization of variable from superclass
2013-03-27 14:28:17 -04:00
Kevin Sawicki
d14ddf6f38
Remove unused require
2013-03-27 14:28:17 -04:00
probablycorey
a1b82e9dad
Allow mini-editors to explicitly set their grammars
2013-03-27 11:00:53 -07:00
Kevin Sawicki
5a7f2a9ef4
Don't show duplicates in open buffer list
...
Closes #378
2013-03-27 11:56:32 -04:00
Kevin Sawicki
8d22b6d1b3
💄
2013-03-27 11:56:32 -04:00
Nathan Sobo
38924f5bb8
Upgrade to latest space pen, as an NPM
2013-03-27 11:06:49 -04:00
Garen Torikian
7233d9d64b
Start figuring out where the pieces go
2013-03-27 01:06:34 -07:00
Cheng Zhao
4768ae9008
Rename node-nsspellchecker to node-spellchecker.
2013-03-27 12:25:55 +08:00
Cheng Zhao
7effc4c456
💄
2013-03-27 12:25:55 +08:00
Cheng Zhao
6ce25d4c71
Fix the usage of spawn.
2013-03-27 12:25:54 +08:00
Cheng Zhao
b5be1c378a
Replace Task's implementation with ProcessTask.
2013-03-27 12:25:54 +08:00
Cheng Zhao
3c5a79710a
Use _.isArray to determine whether a value is Array.
...
When passing arrays between child processes with node's IPC machanism,
`instance of Array` will return false for the deserialized array, we
should use the reiable way of detecting Array provided by underscore.
Read this for more:
http://perfectionkills.com/instanceof-considered-harmful-or-how-to-write-a-robust-isarray/
This bug was found when moving spell-check to use ProcessTask, and the
wrong Range object was returned for the passed misspelling value.
2013-03-27 12:25:54 +08:00
Cheng Zhao
3ed35574d4
Use node-nsspellchecker to replace $native's spell checker.
2013-03-27 12:25:54 +08:00
Cheng Zhao
0d7f642675
Add ProcessTask.
2013-03-27 12:25:54 +08:00
probablycorey
7e405138fc
Beep when only one matches is found by repeatRelativeAddress
...
Closes #45
2013-03-26 16:45:21 -07:00
probablycorey
f817e37a01
Refactor repeatRelativeAddress/repeatRelativeAddressInReverse
2013-03-26 16:45:21 -07:00
probablycorey
2ffb88e936
💄
2013-03-26 16:45:21 -07:00
Nathan Sobo
d3fa24be57
Remove scoped-properties when deactivating a TextMate package
2013-03-26 17:35:45 -06:00
Nathan Sobo
d8b4beb8bd
Now that we remove binding sets, track binding set indices explicitly
...
Previously we relied on the length of the binding sets, but now that
we remove them the length is not a strictly increasing number. This
could cause problem when using the index to break specificity ties.
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
2ac3af193b
Clean up deferred package activation
...
- Eliminate @deferActivation ivar
- Remove activation event listeners when deactivating unactivated packages
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
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
8c1f5658be
Allow packages to have stylesheet manifests
2013-03-26 17:35:43 -06:00
Corey Johnson & Nathan Sobo
c8804359c9
Rename fs -> fsUtils in atom-package
2013-03-26 17:35:43 -06:00
Corey Johnson & Nathan Sobo
643a5c6d0e
💄
2013-03-26 17:35:43 -06:00
Corey Johnson & Nathan Sobo
8437f3ff7f
Only load TextMate packages as needed in specs
...
Also: when a TextMate package is deactivated, remove its grammars
2013-03-26 17:35:42 -06:00
Corey Johnson & Nathan Sobo
8340a084d3
Kill vestiges of CSON from TextMatePackage
2013-03-26 17:35:42 -06:00
Nathan Sobo
bb8b3782b9
Serialize package states independently of RootView
...
Previously, package specs needed to deactivate the root view to test
their package serialization. Now, specs can just deactivate and then
reactivate the package, relying on serialization infrastructure that's
independent of the lifecycle of the RootView.
2013-03-26 17:35:42 -06:00
Nathan Sobo
f5774972e9
Add atom.deactivatePackage(id)
...
It serializes the package state to the atom.packageStates hash when
the package is deactivated, which means we will be able to test
package serialization independent of the overall window lifecycle by
just deactivating and re-activating the package.
2013-03-26 17:35:42 -06:00
Nathan Sobo
4510d31301
Pass options through when loading packages
2013-03-26 17:35:42 -06:00
Nathan Sobo
58ef6c6582
Use atom.activatePackage directly in specs
2013-03-26 17:35:42 -06:00
Nathan Sobo
054626a9a2
Add 'immediate' option to atom.activatePackage to suppress deferral
2013-03-26 17:35:42 -06:00
Nathan Sobo
6e238967a4
💄 Rearrange methods
2013-03-26 17:35:42 -06:00
Nathan Sobo
ae444d1ea3
Add atom.activatePackage(id) method
...
It will load the specified package if it hasn't already been loaded.
2013-03-26 17:35:42 -06:00
Nathan Sobo
b64f5b2a85
Add atom.loadPackage(id). Rewrite loadPackages in terms of it.
2013-03-26 17:35:42 -06:00
Nathan Sobo
c51f1d2c52
💄
2013-03-26 17:35:41 -06:00
Nathan Sobo
d3099cb682
Don't add grammars for atom packages until activate is called
2013-03-26 17:35:41 -06:00
Nathan Sobo
bf7e586e6a
Don't apply stylesheets until active is called for atom packages
2013-03-26 17:35:41 -06:00
Nathan Sobo
af06575aad
Don't add AtomPackage keymaps until activate is called
2013-03-26 17:35:41 -06:00
Nathan Sobo
7a4f5ad9d1
Wait until TextMate packages are activated to add grammars/properties
...
My plan is to cache the loading of packages so we don't have to load
them from the disk repeatedly in specs. The first step of this is
ensuring that load has no side-effects.
2013-03-26 17:35:41 -06:00
Garen Torikian
02873f5116
drop in nak for search
2013-03-26 15:02:48 -07:00
Kevin Sawicki
8cbccafe08
Upgrade to git-utils 0.8.0
2013-03-26 17:08:00 -04:00