| 13 | | == Workflow |
| 14 | | - Snippet mode OFF: |
| 15 | | - {{{$line}}} = the current line text preceding the cursor |
| 16 | | - Find {{{$trigger}}} for {{{$line}}} and the current active snippet bundle or exit |
| 17 | | - Find the snippet associated with trigger or exit |
| 18 | | - Find all variables in snippet of the form:[[BR]] |
| 19 | | {{{${index:default_value},${index} or $index}}}[[BR]] |
| 20 | | e.g. {{{ $1, ${1:...}, ${1} }}} |
| 21 | | - {{{$cursor}}} = the first variable that has the index of 1 |
| 22 | | - Insert snippet |
| 23 | | - Select {{{$cursor}}} in snippet and position the cursor at the end of it. |
| 24 | | |
| 25 | | - Snippet mode ON: |
| 55 | | - Convert snipMate snippets |
| 56 | | - Add mojo snippets to the mix |
| 57 | | - Support a way to set the current subscope |
| 58 | | - Provide a default child document for Perl |
| | 42 | - Import snipMate snippets facility |
| | 43 | - Import {{{TextMate}}} snippets facility |
| | 44 | - Add mojo '''HTML''' snippet to the mix [https://github.com/kraih/mojo-tmbundle/blob/master/Snippets/Template.tmSnippet Template] |
| | 45 | - Support a way to '''change''' the current subscope |