Sublime Forum

Dev Build 2055

#21

Please try to define a snippet that reacts on “-t”. Over here (OSX) it always tries to expand the letter “t” first and not to find and expand a snippet with “-t”. Is it due to the dash?

0 Likes

#22

That does look like a bug: the snippet should be triggering here, instead of completing from ‘t’. It should work fine without the hyphen (non-word triggers have to go through some different logic). I’ll fix the issue for the next build.

0 Likes

#23

The behavior is not correct.
Tab should try to complete only if we have not space or character like {} ] () and maybe some other before the cursor.

0 Likes

#24

You are describing the current behaviour here

0 Likes

#25

No.
I do tab to make an indentation : its ok.
I do tab again to make an other indentation : its ok.
I do tab again to make an other indentation : its not ok, ST try to complete.

0 Likes

#26

bizoo has already reported that bug in this thread

0 Likes

#27

IMO, now that there’s an easy way to explicitly insert a tab on every platform, the only conflict is having completion and next field both bound to tab. This has always been an issue, even when tab would only insert snippets: it can be ambiguous if tab should move to the next field, or do it’s usual thing (insert a tab, snippet, or completion).

0 Likes