Skip to content
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

How does one use the matching regex? #54

Closed
UtahKemeran opened this issue Jun 22, 2021 · 1 comment
Closed

How does one use the matching regex? #54

UtahKemeran opened this issue Jun 22, 2021 · 1 comment

Comments

@UtahKemeran
Copy link

UtahKemeran commented Jun 22, 2021

I have a snippet defined as follows:

context math(context)
snippet `vec([a-zA-Z])` "bold vector" iA
``rv = \textbf{m[1]}`` $0
endsnippet

How can I use the captured group from the snippet trigger word, e.g. if I type veca it should become \textbf{a}

@UtahKemeran
Copy link
Author

\textbf{``rv = m[1]``}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant