Kevin Sawicki
8c4a21ee5d
Remove unused requires
2013-01-24 17:22:50 -08:00
Kevin Sawicki
2393bd0e9e
Create task shell that bootstraps worker
2013-01-24 17:22:50 -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
Kevin Sawicki
ca596db310
Extend AtomPackage directly in packages index.coffee
2013-01-22 18:26:48 -08:00
Kevin Sawicki
9d3751052a
Support hitting tab in snippets with no tab stops
...
Closes #149
2013-01-22 16:44:45 -08:00
Nathan Sobo
2389893799
Absorb parse errors and ignore hidden files when loading atom snippets
2013-01-21 13:49:24 -07: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
6c2607a5e0
Sort $0 tab stops last instead of first for TextMate compatibility
2013-01-09 12:32: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
Corey Johnson
95dcf275e4
Remove *.getLastCursor()
2013-01-08 18:27:29 -08:00
Nathan Sobo
cab5b25e76
Fix undo/redo of snippet expansions. Tab stops are restored correctly.
...
We're giving up on correctly restoring snippet expansions that
occurred in a different EditSession.
2013-01-08 12:54:49 -07:00
Nathan Sobo
a03bb7bf2e
Un-f
2013-01-08 12:53:43 -07:00
Nathan Sobo
314e3da8bc
WIP: Destroy nested tab stops when engulfed by a buffer change
...
Has 2 failing specs...
There are still some issue with this code's interaction with the undo
system. The tab stops will need to be or destroyed when certain
changes are undone or redone.
2013-01-07 21:53:08 -07:00
Nathan Sobo
62d7273069
Parse nested snippet placeholders
2013-01-07 16:49:48 -07:00
Nathan Sobo
60c89f8b32
Allow snippet tab stop placeholder text to contain newlines
2013-01-07 16:35:11 -07:00
Nathan Sobo
858ad69484
Simplify snippet body parsing
...
Previously, we parsed snippet bodies line at a time, then determined
tab stops within lines. But this disallows tab stops with placeholder
text that spans multiple lines. Now the parser produces a simpler
structure that breaks the body into an array of strings and tab stops.
Newlines are represented directly as characters within the strings.
2013-01-07 16:09:18 -07:00
Corey Johnson & Nathan Sobo
f008ff52e8
Load snippets from any atom package with a snippets directory
2013-01-07 14:28:47 -07:00
Corey Johnson & Nathan Sobo
361bf83345
Load snippets from CSON/JSON. Use syntax properties for scoping.
...
This commit eliminates the custom `snippets` format and instead just
uses CSON/JSON.
2013-01-07 14:28:47 -07:00
Kevin Sawicki & Nathan Sobo
8098ee69f3
Rename Editor attach and remove events in accordance w/ new scheme
...
'editor-open' -> 'editor:attached'
'before-remove' -> 'editor:will-be-removed'
2013-01-04 11:25:45 -07:00
Nathan Sobo
fdc1de6be0
Ensure snippets keymaps cascade correctly by breaking into 2 files
2013-01-03 15:20:24 -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
Nathan Sobo
4ce8583cb2
Rename extensions to packages
...
We now look at the `core.disabledPackages` config key. Rename the `src/extensions` directory to `src/packages`. The config object now talks about loading packages instead of extensions.
2012-12-18 20:03:21 -07:00