Sublime Forum

[BUG] Tab trigger issues

#1

Hello. I found two tab-trigger snippet issues:

  1. if i have a snippet that is inserted on /+tab (eg /* comment */) and another snippet on //+tab (eg // comment ), the first will be inserted, no mater what i type (/ or //). I think it should at least give me a choice (or just insert the second snippet, no?)

  2. if a snippet has multiple choices and some of them are optional:

margin:${1:${2:0}${3:px} ${4:0}${5:px} ${6:0}${7:px} ${8:0}${9:px}};

when i delete the optional part, i still have to press tab key for X times (8-9 times, in the above example).

Am i doing anything wrong, is this how is supposed to work or is really a bug?

Thanks!

0 Likes

About tab completions
Key Binding Double Keypress
#2

i saw that Jon is back, so i’ll do an UP post :smiley:

0 Likes

#3

Hello. I have same problems. :neutral_face:

0 Likes

#4

Up?

Jon, can i have at least a short status? (as in „wont fix”/„will fix”/„something”)

Thanks.

0 Likes

Dev Build 2135
Nested tab stops bug in snippets
#5

It’s on my list of things to investigate

0 Likes

#6

another issue with tab triggers is that when using this:

<a href="$1" title="$2">$2</a>$0

and I want to have a # as the href, then hit tab, it automatically inserts a

with id like this:
<a href="<div id=""></div>" title=""></a>

It seems that Sublime is allowing snippets with tab triggers to be triggered from within another snippet. This should not be the case.

0 Likes