You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
In Obsidian I have installed the LaTeX Suite plugin which lets you define snippets for math blocks in markdown files. With this plugin you also have the ability to define snippet variables, for example:
This is really useful when you have a long list of optional patterns in a regex, instead of typing (alpha|beta|gamma|delta ... ) in the snippet's trigger, ESPECIALLY if you want to use this pattern in multiple snippets.
I've read the documentation and googled it but couldn't find a way to replicate this in UltiSnips. Did I miss something? If not, I guess this could be a feature request.
The text was updated successfully, but these errors were encountered:
We do not have this feature, so this is indeed a feature request. Am 15.05.2025 um 13:59 schrieb 9iovaferra ***@***.***>:
9iovaferra created an issue (SirVer/ultisnips#1573)
Hello,
In Obsidian I have installed the LaTeX Suite plugin which lets you define snippets for math blocks in markdown files. With this plugin you also have the ability to define snippet variables, for example:
"${GREEK}": "alpha|beta|gamma|delta ... "
which you can use inside triggers, such as:
"snippets": "[{trigger: '([^\\\\])(${GREEK})', replacement: '[[0]]\\[[1]]', options: 'rmA', description: 'Add backslash before Greek letters'}]"
This is really useful when you have a long list of optional patterns in a regex, instead of typing (alpha|beta|gamma|delta ... ) in the snippet's trigger, ESPECIALLY if you want to use this pattern in multiple snippets.
I've read the documentation and googled it but couldn't find a way to replicate this in UltiSnips. Did I miss something? If not, I guess this could be a feature request.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
Hello,
In Obsidian I have installed the LaTeX Suite plugin which lets you define snippets for math blocks in markdown files. With this plugin you also have the ability to define snippet variables, for example:
which you can use inside triggers, such as:
This is really useful when you have a long list of optional patterns in a regex, instead of typing
(alpha|beta|gamma|delta ... )
in the snippet's trigger, ESPECIALLY if you want to use this pattern in multiple snippets.I've read the documentation and googled it but couldn't find a way to replicate this in UltiSnips. Did I miss something? If not, I guess this could be a feature request.
The text was updated successfully, but these errors were encountered: