Sublime Forum

Nested tab stops bug in snippets

#1

Given the following snippet with nested tab stops:

function ${1:fnName}(${2:${3:\$param1} = ${4:'value'}}) { ${5://code goes here} }

The nested tab stops work fine normally, but at tab stop 2, if I delete the selected content which includes tab stops 3 and 4, I have to press tab three times to get to tab stop 5, even though 3 and 4 have been deleted.

It’s very awkward (and a bug in my view) that deleting a parent tab stop should also delete the child tab stops. If I hit delete at tab stop 2, the next tab key press should take me directly to 5, should it not?

edit: I’m using ST2 build 2139

TIA.

0 Likes

#2

I think is already posted here.

0 Likes

#3

Thank you. I did a search, but apparently “tab-trigger” and “tab stop” aren’t considered the same thing to the forum search engine. :wink:

0 Likes