-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Request] Implment snip.expand_anon #327
Comments
Need communication between python and node process, should be possible, I think. |
Thank you for this! But like in the demo, I have For instance, I expect: post_jump "create_matrix_placeholders(snip)"
snippet 'arr(\d+),(\d+)' "LaTeX array" br
\begin{array}{`!p
orient = ""
for _ in range(0, int(match.group(1))): orient += "l"
snip.rv = orient`}
`!p
snip.rv = create_matrix(match.group(1), match.group(2), "&", "\t", "\\\\\n")
`$0
\end{array}
endsnippet This to produce when doing arr3,3 \begin{array}{lll}
$1 & $2 & $3 \\
$4 & $5 & $6 \\
$7 & $8 & $9 \\
\end{array} And able to edit |
Or is there a setting I'm missing? |
No support for |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, could this be implemented: expand_anon from ultisnippets?
The reference is here: https://github.com/SirVer/ultisnips/blob/0ad238b1910d447476b2d98f593322c1cdb71285/pythonx/UltiSnips/text_objects/python_code.py#L54 and here: https://github.com/SirVer/ultisnips/blob/0ad238b1910d447476b2d98f593322c1cdb71285/pythonx/UltiSnips/snippet_manager.py#LL297
Implementing this would allow snippets like:
to work for this
https://github.com/SirVer/ultisnips/blob/master/doc/examples/tabstop-generation/demo1.gif?raw=true
This would make my day in Latex, and I would appreciate it.
The text was updated successfully, but these errors were encountered: