language-meta-script
Metascript support for the atom editor.
Installation
- Install the editor-grammar-scope package using the atom package manager
- git clone language-metascript
- cd language-metascript && npm install
- ln -s `pwd` ~/.atom/packages/
You might also want to install the linter-metascript package for on-the-fly error checking.
Keyboard shortcuts
| Keyboard shortcut | Description |
|---|---|
| ctrl-alt-, | Run the tests for the current package. |
| ctrl-alt-x | Evaluate selected region. |
| ctrl-alt-m t | Toggle test view. |
| ctrl-alt-m r | Toggle REPL view. |
| alt-= | Toggle folding at current indent level. |
Snippets
Insert a snippet by typing the prefix below followed by tab.
| Prefix | Expansion |
|---|---|
| v | var v |
| v= | var v = 42 |
| c | const c = 42 |
| f | fun f () -> 42 |
| if | if true true |
| ife | if true true else false |
| #e | #external symbol |
| #m | #metaimport module |
| #r | #require module |
| d | describe 'given' #-> |
| it | it 'should' #-> |
| ita | it 'should' done -> |
| be | before-each #-> |
| bea | before-each done -> |
| log | console.log '42' |