hsnips icon indicating copy to clipboard operation
hsnips copied to clipboard

"Double" tabstops is incompatible with snippets

Open tomasrei opened this issue 2 years ago • 4 comments

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

tomasrei avatar Nov 09 '22 21:11 tomasrei

Hello, are you using the vscode vim extension ?

Possible duplicate of #78

gruvw avatar Nov 09 '22 22:11 gruvw

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

tomasrei avatar Nov 10 '22 07:11 tomasrei

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

tomasrei avatar Nov 10 '22 07:11 tomasrei

Strange, using another snippet does NOT cause this problem:

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

tomasrei avatar Nov 10 '22 07:11 tomasrei