Commit Graph

79 Commits

Author SHA1 Message Date
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
07a8a35e48 Migrate fs.traverseTree to use Node's fs 2013-03-05 14:51:28 -08:00
Cheng Zhao
091851ee3d First taste of node. 2013-03-05 09:10:04 +01:00
Kevin Sawicki
10430842b0 Use binary icon for .woff and .DS_Store extensions 2013-02-16 09:54:20 -08:00
Kevin Sawicki
1f4aedeb10 Rename isReadme to isReadmePath 2013-02-12 11:47:13 -08:00
Kevin Sawicki
9e39a382e8 DRY up checking if path is .cson or .json 2013-02-12 11:02:07 -08:00
Kevin Sawicki
9011d62351 Use octicon for README files 2013-02-05 09:17:47 -08:00
Kevin Sawicki
bd88a0de15 Support CSON config file
Use ~/.atom/config.cson as the new default when no
config file exists.

~/.atom/config.json is still the default if they both
exist.
2013-02-04 12:38:00 -08:00
Kevin Sawicki
0bb0863b61 Use _.indexOf instead of _.contains
_.indexOf supports a isSorted flag which can be used
since the extension arrays are pre-sorted.
2013-02-04 09:08:00 -08:00
Kevin Sawicki
379a4a4d8d Only auto-load .cson and .json keymap files
This now prevents files such as .DS_Store from being loaded as a
keymap where previously all paths were loaded regardless of extension.

Closes #205
2013-01-31 12:03:21 -08:00
Kevin Sawicki
9ab730b3d0 Load snippets in a web worker
A single web worker is now used to load
snippets one bundle at a time.
2013-01-24 17:22:50 -08:00
Jon Rohan
5969e79ebc allow leading dot in extension names in fs resolve 2013-01-22 12:41:33 -08:00
Kevin Sawicki
78d855e05e Add .tiff to image extensions 2013-01-16 09:11:40 -08:00
Nathan Sobo
2c4da1b8dd Merge branch 'snippets' into dev
Conflicts:
	src/app/package.coffee
	src/packages/snippets/src/snippets.coffee
2013-01-09 13:10:11 -07:00
Nathan Sobo
e33f93b40c Load snippets from TextMate bundles
There's still a bunch of holes in this. TextMate snippets have features
that we don't support yet. But the basic ones should now work.
2013-01-09 11:43:11 -07:00
Kevin Sawicki
fee1e7bc8b Escape ext in RegExp from fs.base 2013-01-08 13:31:37 -08:00
Kevin Sawicki
594813be34 Escape path in RegExp from fs.directory() 2013-01-08 13:30:41 -08:00
Nathan Sobo
a9bb4ea163 When loading a package, honor the 'keymaps' manifest in package.json
Also, add a spec to cover the loading of keymaps in `atom-spec` and
reset the `keymap`'s internal data after each spec gets run to prevent
test pollution with keymaps.
2013-01-03 15:17:09 -07:00
Kevin Sawicki & Nathan Sobo
bcde77dd0e Load keymaps from cson
All existing .coffee keymaps are now .cson and package
keymaps are now located in a keymaps folder at the root of
the package.
2013-01-02 16:10:46 -08:00
Kevin Sawicki
183a6d8e8b Add helper for markdown extension to fs 2012-12-31 13:49:40 -08:00
Nathan Sobo
fa7bcfe51b Bundle a themes directory so we don't depend on ~/.atom/themes
We'll look first in the user themes directory, then in the built-in
themes directory. This allows us to default to 'IR_Black' and not crash
if the user doesn't setup their `~/.atom/themes` directory.
2012-12-31 12:08:36 -06:00
Kevin Sawicki
ae6039e74d Add octicons to fuzzy-finder
Also place file base name first followed by
directory path in darker color
2012-12-26 20:13:53 -08:00
Corey Johnson & Kevin Sawicki
a6a05b6ff4 Remove directories from fuzzy-finder 2012-12-12 17:25:45 -08:00
Corey Johnson & Kevin Sawicki
404f637101 Populate fuzzy-finder asynchronously 2012-12-12 12:26:39 -08:00
Kevin Sawicki
a1f9e061bc Remove native.list
Use native.traverseTree instead from fs.list
and fs.listTree
2012-10-09 17:41:33 -07:00
Kevin Sawicki
8b61e6a9df Split out file and directory callbacks 2012-10-09 17:41:32 -07:00
Kevin Sawicki
51a41a9a72 Add native traverseTree 2012-10-09 17:41:32 -07:00
Kevin Sawicki
7ab088df8b Check recurse flag before verifying path is directory
Avoid an unnecessary native call if recursing into the current
path has already been avoided.
2012-10-08 11:47:48 -07:00
Corey Johnson & Nathan Sobo
bd1982ede1 Nix fs.async.* methods. They aren't needed now. 2012-08-30 16:12:15 -06:00
Nathan Sobo
c3e748a17c WIP: Use rake to start compiling resources (like require.coffee) 2012-08-26 16:29:46 -05:00
Nathan Sobo
c2c8724ad0 Initial commit 2012-08-10 13:32:19 -06:00
Corey Johnson & Nathan Sobo
1a243adfcf All specs pass w/ TextMateGrammar for tokenization (auto-indent disabled) 2012-08-03 12:00:05 -06:00
Corey Johnson
4cf4456635 Add fs.makeTree 2012-07-03 14:46:45 -07:00
Corey Johnson
fc660c2790 Add fs.split 2012-07-03 14:44:41 -07:00
Corey Johnson
08b0a686ed fs.directory returns empty string if path has no parent directory 2012-07-03 14:43:56 -07:00
Corey Johnson & Nathan Sobo
6ebe75c0bd Add fs.md5ForPath 2012-07-02 18:19:16 -06:00
Nathan Sobo
8c740b09e6 Add fs.lastModified 2012-07-02 17:44:12 -06:00
Nathan Sobo
79d9faba58 Make fs.isFile return false for null/undefined paths 2012-06-27 07:57:05 -06:00
Nathan Sobo
2cb993760b Make fs.exists return false for null/undefined paths 2012-06-27 07:56:02 -06:00
Nathan Sobo
2baf374937 Newline at end of file 💄 2012-06-01 14:01:00 -06:00
Corey Johnson & Nathan Sobo
289193787e Add fs.traverseTree 2012-05-08 17:45:29 -07:00
Corey Johnson
545671a641 fs.isFile(path) returns false if given path does not exist 2012-05-08 13:02:14 -07:00
Corey Johnson
0227b11bf3 Fix syntax error in fs.base 2012-05-01 14:26:32 -07:00