Commit Graph

10 Commits

Author SHA1 Message Date
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