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
I have an UltiSnips snippet I use to help me declare JavaScript functions through a process of keyword elimination that looks like this:
snippet"^function""top level function declaration"r${1:export ${2:default }}${3:async }function${4:*}${5:functionName}(${6:params}) {
$7
}$0
As I delete keywords, I wanted to automatically jump to the next tabstop. So, using the Autojump from tabstop when it's empty guide, I updated the snippet to the following:
The autojumping works when I delete tabstops 2-4, but if I delete tabstop 1, the autojumping then fails for the rest of the tabstops.
I thought maybe the issue might be with the fact that the snippet uses a regex, or perhaps that tabstop 2 is nested inside tabstop 1, but making those changes didn't fix the problem.
I actually got autojumping back for all tabstops simply by adding a space at the very beginning of the snippet, just before tabstop 1:
The only issue now is that I have that unwanted space. Is there a way to work around this, or is this perhaps a known issue with tabstops at the very beginning of snippets? There's no issue with manual jumping, which is why I've filed the issue here, rather than with UltiSnips.
The text was updated successfully, but these errors were encountered:
I have an UltiSnips snippet I use to help me declare JavaScript functions through a process of keyword elimination that looks like this:
As I delete keywords, I wanted to automatically jump to the next tabstop. So, using the Autojump from tabstop when it's empty guide, I updated the snippet to the following:
The autojumping works when I delete tabstops 2-4, but if I delete tabstop 1, the autojumping then fails for the rest of the tabstops.
I thought maybe the issue might be with the fact that the snippet uses a regex, or perhaps that tabstop 2 is nested inside tabstop 1, but making those changes didn't fix the problem.
I actually got autojumping back for all tabstops simply by adding a space at the very beginning of the snippet, just before tabstop 1:
The only issue now is that I have that unwanted space. Is there a way to work around this, or is this perhaps a known issue with tabstops at the very beginning of snippets? There's no issue with manual jumping, which is why I've filed the issue here, rather than with UltiSnips.
The text was updated successfully, but these errors were encountered: