draivin / hsnips

HyperSnips: a powerful snippet engine for VS Code, inspired by vim's UltiSnips
MIT License
148 stars 23 forks source link

"Double" tabstops is incompatible with snippets #136

Open tomasrei opened 1 year ago

tomasrei commented 1 year ago

I trying to get the first input in my first tabstop to be "copied" to the 5th line of my code (\mathcal{L}{$1}). It works exactly how I want it, except if I use any of my snippets as input. For example, when I use the autosubscript snippet as input, the cursor jumps down to the "copy" on line 5. And like I said, if I type {} manually, it works.

snippet max2 "[L] max - 2 const." A
\\begin{align*}",
    \max_{${1:var1}, ${2:var2}}
\\\\
    \mathcal{L}_{$1}
\\end{align*}
endsnippet

# Autosubscript-Snippet
snippet __ "[G] Subscript" iA
_{}
endsnippet
gruvw commented 1 year ago

Hello, are you using the vscode vim extension ?

Possible duplicate of #78

tomasrei commented 1 year ago

I don't think so. I don't have any vim extensions installed. Does it work for you?

tomasrei commented 1 year ago

I disabled all extensions, keeping only Hyperscopes and Hypersnips enabled. The problem persists.

tomasrei commented 1 year ago

Strange, using another snippet does NOT cause this problem:

context math(context)
snippet ,, "[T] Comma after eq."
\, ,
endsnippet