Commit Graph

763 Commits

Author SHA1 Message Date
Corey Johnson & Nathan Sobo
db4420e068 Move grammar overrides to syntax (no serialization yet) 2013-03-22 17:35:35 -06:00
Nathan Sobo
ab934cfbfb Replace LoadTextMatePackagesTask with async grammar loading 2013-03-22 15:29:07 -06:00
Kevin Sawicki
266c305ebb Implement getPath() in markdown preview view
This allows it to be shown in the tree view when the
reveal command is triggered.
2013-03-22 09:55:21 -07:00
Kevin Sawicki
a362a14f75 Only add view when grammars-loaded event fires
Previously the views would be added immediately
if more than one grammar was already registered.

This was unneeded since the event will always fire
after the package is activated.
2013-03-21 17:22:39 -07:00
Corey Johnson & Nathan Sobo
ef595c74ef Update GFM snippets to atom syntax instead of textmate 2013-03-21 16:17:50 -06:00
Corey Johnson & Nathan Sobo
2f3b4b9e5f Move scoped properties out of the grammar file and into a directory
Closes #435
2013-03-21 14:07:32 -07:00
Corey Johnson & Nathan Sobo
0b719bfecf Atom packages can load cson grammars and TextMate packages can't 2013-03-21 13:26:56 -07:00
Kevin Sawicki
1929899365 Remove z-index on editor stats
Wasn't needed now that it just sits below the status bar.

Closes #389
2013-03-21 11:28:16 -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
probablycorey
d2b2c6fc8d Remove unused code 2013-03-20 14:33:52 -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
ae96a48572 Call populateProjectPaths when callback completes
This removes duplicate code for the cases when a callback
is used and when the view already has populated paths.
2013-03-20 11:59:38 -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
probablycorey
9c6978e913 Operation creates a marker immediately when given a buffer 2013-03-19 14:32:25 -07:00
probablycorey
35ab49eff0 SelectAllMatchesInProject Operations create buffers on demand 2013-03-19 11:30:49 -07:00
Corey
1f23fa8cfc 💄 2013-03-19 11:30:49 -07:00
Corey Johnson
4702f3775d Calling collapseAllPaths creates elements for every Dom node 2013-03-19 11:30:48 -07:00
Corey Johnson & Nathan Sobo
10f405f61f Create preview list Dom elements only when needed 2013-03-19 11:30:48 -07:00
Corey Johnson
6b3d527dda Add one operations at a time to PathViews 2013-03-19 11:30:48 -07:00
Corey Johnson
014d5e7bb3 Remove setLineNumberWidth 2013-03-19 11:30:48 -07:00
Corey Johnson
7798f04cc4 Index variable from operations is not longer used 2013-03-19 11:30:48 -07:00
Corey Johnson
919cee3e4a Allow operations to be added to a PathView 2013-03-19 11:30:48 -07:00
Nathan Sobo
5270a99f7b Use eachSeries to load snippets so we don't exhaust file descriptors 2013-03-19 11:32:23 -06:00
Nathan Sobo
91587cbb99 Guard loadAtomSnippets against non-existent snippet directories 2013-03-19 11:32:23 -06:00
Corey Johnson & Nathan Sobo
dfecef24e9 Only load necessary packages in snippets spec 2013-03-19 11:32:15 -06:00
Nathan Sobo
e5436974eb Replace snippet loader task w/ async loading 2013-03-18 14:57:09 -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
Corey Johnson
3ec74f3211 Move toExistOnDisk matcher to spec helper 2013-03-12 16:55:28 -07:00
Kevin Sawicki & Nathan Sobo
051decc08c Use fs.resolveOnLoadPath() instead of require.resolve() 2013-03-12 14:42:24 -07:00
Kevin Sawicki
e601c6e256 Use fs.resolveOnLoadPath() to find ctags executable 2013-03-12 13:37:12 -07:00
Kevin Sawicki & Nathan Sobo
5399fdb939 Don't reassign to parameter 2013-03-12 12:17:12 -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
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
9330276ae9 Abort task when view is created 2013-03-11 20:57:10 -07:00
Kevin Sawicki
7c04aaf536 Only set project paths if non-empty 2013-03-11 20:57:10 -07:00
Nathan Sobo
66467b3571 Fix markdown preview height. Some styles crept back in during merge. 2013-03-11 20:17:24 -06: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
b01a4aa041 Allow markdown preview view to be scrolled with core:move-up/move-down 2013-03-11 17:34:59 -06:00
Corey Johnson & Nathan Sobo
140b22737e Refetch rendered markdown when triggering preview a subsequent time 2013-03-11 16:56:44 -06:00
Kevin Sawicki
5d8a40d240 Use d3 npm 2013-03-11 15:48:29 -07:00
Nathan Sobo
bf7fc39434 Rename AtomPackage.packageMain to .mainModule 2013-03-11 16:04:38 -06:00
Nathan Sobo
10d0fdf2d7 Require a deferred package early if needed when deserializing panes
The requiring of a package's main module is now decoupled from package
activation. Non-deferred packages will always be required before the
panes are deserialized. This allows the package to register any
deserializers for objects displayed in the panes.

Deferred packages can contain a 'deferredDeserializers' array in their
package.cson. If we attempt to deserialize an object with a deserializer
in the list, the package's main module will be required first so it has
a chance to register the deserializer. But the package still won't be
activated until an activation event occurs.

We may want to add an additional optional hook called 'load' which is
called at require time. We would not guarantee that the rootView
global would exist, but we could give the package a chance to register
deserializers etc. For now, registering deserializers is a side-effect
of requiring the package.
2013-03-11 15:08:19 -06:00
Nathan Sobo
a392174164 Un-f 2013-03-11 14:57:03 -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
Justin Palmer
e1a9362448 wrap-guide.css -> wrap-guide.less 2013-03-11 10:02:18 -07:00
Justin Palmer
6fd0118d2c tree-view.css -> tree-view.less 2013-03-11 10:02:18 -07:00
Justin Palmer
7ad67e50a6 spell-check.css -> spell-check.less 2013-03-11 10:02:18 -07:00
Justin Palmer
758c9f116f package-generator.css -> package-generator.less 2013-03-11 10:02:18 -07:00