Corey Johnson & Nathan Sobo
9f235103f8
Add _.spliceWithArray to avoid stack overflows when splicing huge arrays
2013-04-23 11:16:55 -07:00
Nathan Sobo
608ffd27ad
Slightly more correct
2013-04-22 11:34:03 -06:00
Nathan Sobo
444325893b
Allow subscribers to unsubscribe on a per-object basis
...
This makes use of the new ES6 WeakMap feature, which allows for a hash
map that's keyed by object.
2013-04-22 11:34:03 -06:00
Kevin Sawicki
1aa0e52cea
💄
2013-04-16 17:52:00 -07:00
Nathan Sobo
ae77011385
Unsubscribe correctly in subscribeToCommand
2013-04-08 17:46:29 -06:00
Nathan Sobo
2601f266fa
Add subscribeToCommand to track command subscriptions on other views
2013-04-08 17:09:12 -06:00
Cheng Zhao
e0865e8c38
Use node-pathwatcher.
2013-04-07 16:35:35 +08:00
Kevin Sawicki
b9fcfda904
Only match brackets if underlayer is visible
2013-04-05 15:05:43 -07:00
Kevin Sawicki
ede5e88a19
Merge origin/master into nak-powered-search
...
Conflicts:
src/packages/command-panel/lib/preview-list.coffee
src/packages/fuzzy-finder/lib/load-paths-task.coffee
2013-04-03 11:43:35 -07:00
Nathan Sobo
f03b6207de
Make all requires of 'fs-utils' assign to fsUtils var instead of fs
2013-04-03 12:01:37 -06:00
Garen Torikian
f48355ce10
Merge branch 'nak-nostream' into nak-powered-search
2013-03-31 00:45:14 -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
5f9c643ae9
Kill process when task is aborted
2013-03-28 22:52:01 -04:00
Cheng Zhao
7effc4c456
💄
2013-03-27 12:25:55 +08:00
Cheng Zhao
b5be1c378a
Replace Task's implementation with ProcessTask.
2013-03-27 12:25:54 +08:00
Cheng Zhao
0d7f642675
Add ProcessTask.
2013-03-27 12:25:54 +08:00
Kevin Sawicki
fab5842651
Support requiring stylesheets without an extension
...
Stylesheets will attempt to be resolved with both css
and less extensions if no extension is included in the
path specified to requireStylesheet().
2013-03-26 00:11:11 -04:00
Kevin Sawicki
3514ee5659
Remove unused event.coffee
2013-03-25 18:06:54 -04:00
Nathan Sobo
ab934cfbfb
Replace LoadTextMatePackagesTask with async grammar loading
2013-03-22 15:29:07 -06:00
Nathan Sobo
d3ead2a0d1
Update fs.list to use readdirSync and filterExtensions helper
2013-03-22 15:29:07 -06:00
Nathan Sobo
a5dcd71548
Add fs.listAsync
2013-03-22 15:29:07 -06:00
Corey Johnson
93bef861df
Remove unused stdlib files
2013-03-22 13:51:09 -07:00
John Barnette
7e6dc68bca
We have node now, so kill our path module
2013-03-22 13:51:09 -07:00
Kevin Sawicki & Nathan Sobo
e23edd02fd
Use flexbox to position editor's gutter and scroll view
...
This removes the need to compute the width of the gutter based
on the line count in the editor and also removes the need to
set the scroll view's left position manually.
2013-03-22 12:47:56 -07:00
Kevin Sawicki
1051ad83c8
Use async queue in fs-utils traverseTree()
...
This removes the need for tracking when the traversal is done.
2013-03-20 15:54:23 -07:00
Kevin Sawicki
a55fdc7551
Return absolute paths from resolve methods
...
This mirrors the behavior of require.resolve for
all the resolve methods provided by fs-utils.
2013-03-20 14:52:48 -07:00
Kevin Sawicki
5f771978ac
Update path when move events occur
2013-03-20 14:18:40 -07:00
Corey Johnson & Kevin Sawicki
6c357aaca7
Make paths absolute before calling $native.watchPath
...
Also return a subscription that can be unwatched instead
of returning an id that is later passed to $native.unwatchPath
along with the watched path.
This allows specs to pass when run from a symlink'ed folder.
2013-03-20 13:27:49 -07:00
Kevin Sawicki & Nathan Sobo
501dc9b76c
Merge remote-tracking branch 'origin/master' into cefode
...
Conflicts:
native/v8_extensions/native.mm
spec/app/config-spec.coffee
spec/app/window-spec.coffee
spec/spec-helper.coffee
spec/stdlib/fs-utils-spec.coffee
src/app/atom-package.coffee
src/app/config.coffee
src/app/window.coffee
src/packages/fuzzy-finder/lib/load-paths-handler.coffee
src/packages/markdown-preview/lib/markdown-preview-view.coffee
src/packages/tree-view/spec/tree-view-spec.coffee
src/stdlib/require.coffee
2013-03-20 10:46:50 -06:00
Nathan Sobo
4a203a9eb6
Use plist NPM instead of vendor/plist.js. Use new synch parsing api.
...
This also adds a `readObject` method to `fs-utils`, which loads the
file as cson if it ends with json/cson, and otherwise tries to load
it as a plist.
For now, we're using my fork which is tolerant to a node environment
with a `window` global and suppresses some logging of non-fatal
errors. If the upstream author accepts my pull requests we can switch
back.
2013-03-19 11:32:23 -06:00
Nathan Sobo
e5436974eb
Replace snippet loader task w/ async loading
2013-03-18 14:57:09 -07:00
Nathan Sobo
a1882ffd1f
Move "GitHub" special-case to _.capitalize. Add specs.
2013-03-14 11:35:06 -06:00
Nathan Sobo
634117ed66
Make $.fn.document always take event name / doc string args
...
It's simpler and we don't use the other syntax right now.
2013-03-14 11:34:28 -06:00
John Barnette
eb5d0fe3f5
Actually make doc: work
2013-03-13 21:30:00 -07:00
John Barnette
460577d9ae
Spike optional doc: key for command
...
This isn't working yet.
2013-03-13 19:40:35 -07:00
Kevin Sawicki
8dbcb44d06
Rename traverseTree to traverseTreeSync
...
Also rename traverseTreeAsync to traverseTree
2013-03-13 14:40:31 -07:00
Kevin Sawicki
8fe9e31c08
Don't use a web worker for loading all paths
...
Instead use fs.realpath() and fs.stat() to walk the project
tree asynchronously.
2013-03-13 11:29:40 -07:00
Kevin Sawicki
65d5e631f8
Remove $native.absolute()
...
fs-utils.absolute() now recreates the same behavior
but instead using fs.readpathSync().
This brings over the same behavior for special handling
the /private directory for now.
2013-03-12 19:41:42 -07:00
Kevin Sawicki
c64d07d506
Return false if stat exception is thrown
...
Calling exists() and then statSync() ends up stat'ing
the file twice so removing the exists() check saves a stat
call.
2013-03-12 17:49:11 -07:00
Kevin Sawicki & Nathan Sobo
879f4e92a6
Remove require.coffee
2013-03-12 14:59:42 -07:00
Kevin Sawicki
eea02cb807
Remove unneeded coffee-script require
...
This is handled by the wrapper around task-shell
to ensure coffee-script is required before the shell
is.
2013-03-12 13:06:23 -07:00
Kevin Sawicki
6699941da0
Remove unneeded resolved task shell path
2013-03-12 13:05:51 -07:00
Kevin Sawicki & Nathan Sobo
82bfd83da1
Require task shell path in blob snippet
2013-03-12 13:05:22 -07:00
Kevin Sawicki & Nathan Sobo
1d1ba5f6d1
Use node's require instead of internal require
2013-03-12 10:38:05 -07:00
Kevin Sawicki
6f5138a56e
Revert "Remove $native.md5ForPath()"
...
This reverts commit 832df7149e .
2013-03-12 08:23:54 -07:00
Kevin Sawicki
115b960ce7
Handle reading and writing in cson.coffee
...
Moves helpers from fs.coffee to cson.coffee
2013-03-11 22:40:00 -07:00
Kevin Sawicki
832df7149e
Remove $native.md5ForPath()
2013-03-11 20:58:57 -07:00
Kevin Sawicki
ec8a5b368b
Use node's crypto from fs.md5ForPath()
2013-03-11 19:20:36 -07:00
Corey Johnson
06b63c24dc
Merge remote-tracking branch 'origin/dev' into md-preview-redux
...
Conflicts:
src/packages/markdown-preview/stylesheets/markdown-preview.css
static/atom.css
static/command-panel.css
2013-03-11 17:02:36 -07:00
Corey Johnson & Nathan Sobo
7e03880bd0
Add $.fn.scrollUp and .scrollDown
...
These scroll the element by a small amount up or down.
2013-03-11 17:32:11 -06:00