how can I control where to put an equation with snippets? #259
Unanswered
TheTacoSexyZ
asked this question in
Q&A
Replies: 1 comment
-
Probably, the regex snippet can do what you want to do.
For example, the above snippet will expand |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I apologize if this is a bad question, I'm new to this... :/
Here are two snippets examples
{trigger: "!", replacement: "\dfrac{1}{${VISUAL}}", options: "mA"},
{trigger: "#", replacement: "x^{${VISUAL}", options: "mA"},
If I have this equation, x^2+\dfrac{1}{x}, I have to select it and then press # or ! (or any other characters) to trigger the action.
But what I am looking for, is that I can do the same, but without selecting anything, I just write any equation, and when I finish writing in that line and put # or !, then it activates any of the 2 actions 'my ecuation'! to \dfrac{1}{my ecuation} or 'my ecuation'# to x^{my ecuation}.. without having selected anything
Beta Was this translation helpful? Give feedback.
All reactions