Skip to content

Commit

Permalink
(docs) show how to execute snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
geddski committed Jan 26, 2017
1 parent adad3f4 commit 0d09939
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,19 @@ Many commands accept arguments, like the "type" command which lets you insert te
}
```

## Executing Snippets as part of a Macro

Macros can also execute any of your snippets which is super neat. Just insert the same text that you would normally type for the snippet, followed by the `insertSnippet` command:

```json
"macros": {
"doMySnippet": [
{"command": "type", "args": {"text": "mySnippetPrefixHere"}},
"insertSnippet"
]
}
```

## License
MIT

Expand Down

0 comments on commit 0d09939

Please sign in to comment.