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
Kevin Sawicki
03b32ec29c
Use coffee-script node module
...
This required upgrading underscore which to fix issues
with _.isEqual working across objects created from different
documents.
The upgrade required adding a custom _.isEqual extension that
added back support for object's having an isEqual method that
was removed in underscore 1.4.0.
2013-03-11 13:39:17 -07:00
Kevin Sawicki
2212222c47
Use underscore node module
2013-03-11 11:22:36 -07:00
probablycorey
0b674978db
Require will parse .less files into css
2013-03-11 10:02:18 -07:00
Ben Burkert
6dd9d011aa
The CSON library requires the underscore-extensions library.
2013-03-11 10:58:52 -03:00
Kevin Sawicki
f3049681bd
Use git-utils module
...
Removes the need to include libgit2 as this is now handled by the
git-utils module which provides functions that were previously in
git.mm and git.coffee
2013-03-09 14:34:06 -08:00
Kevin Sawicki
8cf32149b7
Return absolute paths from $native.traverseTree()
...
Previously relative paths were generated even though
things like fs.list() and fs.listTree() would just
recombine them with the root path.
Closes #391
2013-03-08 13:44:28 -08:00
Kevin Sawicki
99dc796f42
Remove $native calls from require.coffee
2013-03-07 19:00:02 -08:00
Kevin Sawicki
2f8b1d5e3e
Remove $native.remove()
2013-03-07 18:36:20 -08:00
Kevin Sawicki
d91c540d47
Remove $native.move()
2013-03-07 18:25:25 -08:00
Kevin Sawicki
5202e846de
Remove $native.write()
2013-03-07 18:20:29 -08:00
Kevin Sawicki
6abf1ff1aa
Remove $native.makeDirectory()
2013-03-07 18:02:55 -08:00
Kevin Sawicki
e7050b2083
Remove unused $native.lastModified()
2013-03-07 18:00:35 -08:00
Kevin Sawicki
fedf43ca0a
Remove $native.exists()
2013-03-07 17:57:28 -08:00
Kevin Sawicki
4bc513a8e3
Remove $native.isFile() and $native.isDirectory
2013-03-07 17:55:13 -08:00
Kevin Sawicki
acf5f4ce5e
Remove fs/$native.getAllFilePathsAsync()
...
This was previously only used by project.getFilePath()
which should have been using fs.traverseTree() instead.
2013-03-07 17:48:36 -08:00
Kevin Sawicki
ce8867fac9
Remove unused ChildProcess class
2013-03-07 17:40:24 -08:00