Using backtick key for hyersnips expansion #19
-
Hello, I have found hypersnips faster than native LaTeX Workshop snippets for typing greek symbols. I would like to use the backtick ` key followed by a mnemonic for some snippets such as:
At present, in LaTeX Workshop, the backtick key gets autocompleted due to the following setting:
in latex-language-configuration.json. See here As a result, when I press backtick, I end up with `|' where | is the cursor position. Pressing
After trigger expansion, is it possible to automatically delete the trailing Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
If you're sure that this auto closing will only be triggered in normal scope (non-math), you can implement it in Hypersnips and define a new scope function called normal which return the negation of context normal(context)
snippet ` "auto-closing" iA
`$1' $0
endsnippet |
Beta Was this translation helpful? Give feedback.
If you're sure that this auto closing will only be triggered in normal scope (non-math), you can implement it in Hypersnips and define a new scope function called normal which return the negation of
math()
, and use it for your new snippet defined in Hypersnips as