0.8.0 • Published 4 years ago
@unisnips/atom v0.8.0
:construction: Still WIP.
unisnips aims to be the bridge between different editor/plugin/code-exapand-apps. It parses snippet sources (so far only a subset of UltiSnips is supported) snippets and converts them to different targets.
You can keep only one set of expressive code templates - AKA snippets - and free yourself the chore of rewriting snippets to fit specifications of different platforms.
Features
Supported sources
UltiSnips
- Positional placholder (aka 'TabStop' in UltiSnips)
snippet subsec "most common and simple"
---------------- $1 ----------------------
----------------end $1 -------------------
endsnippet
snippet with_default "with default value"
function ${1:name} {
${2://body}
}
endsnippet
- 'VISUAL' placeholder
snippet ret "return value"
ret ${VISUAL}
endsnippet
- script code block
snippet test_shell "shell code"
should print date: `! date`
endsnippet
snippet test_js "javascript code"
should print date: `!js new Date()`
endsnippet
Supported targets
- vscode
- atom
Roadmaps
- Port UltiSnips parser to TypeScript, to fully understand its
.snippets
file. - Add more builtin variables, may be useful in some targets (such as vscode's
$CURRENT_YEAR
).
0.8.0
4 years ago
0.7.1
4 years ago
0.7.0
4 years ago
0.7.0-alpha.0
4 years ago
0.6.0-alpha.0
4 years ago
0.5.1-alpha.0
4 years ago
0.5.0
4 years ago
0.5.0-alpha.0
4 years ago
0.4.0-alpha.1
4 years ago
0.4.0
4 years ago
0.3.0-alpha.0
4 years ago
0.3.0-alpha.1
4 years ago
0.2.0-alpha.2
4 years ago
0.2.0-alpha.1
4 years ago
0.2.0-alpha.0
4 years ago
0.1.0
4 years ago