Home Download Buy Blog Forum Support

[BUG] Tab trigger issues

[BUG] Tab trigger issues

Postby iamntz on Mon Aug 15, 2011 5:06 am

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:
Code: Select all
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!
iamntz
 
Posts: 919
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: [BUG] Tab trigger issues

Postby iamntz on Thu Aug 18, 2011 4:41 am

i saw that Jon is back, so i'll do an UP post :D
iamntz
 
Posts: 919
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: [BUG] Tab trigger issues

Postby oriceon on Thu Aug 18, 2011 4:49 pm

Hello. I have same problems. :|
oriceon
 
Posts: 56
Joined: Tue Jun 14, 2011 6:06 am

Re: [BUG] Tab trigger issues

Postby iamntz on Wed Aug 24, 2011 8:00 am

Up?

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

Thanks.
iamntz
 
Posts: 919
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: [BUG] Tab trigger issues

Postby jps on Wed Aug 24, 2011 10:24 am

It's on my list of things to investigate
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm

Re: [BUG] Tab trigger issues

Postby MrMartineau on Sat Aug 27, 2011 8:44 am

another issue with tab triggers is that when using this:
Code: Select all
<a href="$1" title="$2">$2</a>$0


and I want to have a # as the href, then hit tab, it automatically inserts a <div> with id like this:
Code: Select all
<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.
@MrMartineau || Setup Sublime Text quickly: Find out all you need at https://github.com/mrmartineau/SublimeTextSetup
MrMartineau
 
Posts: 78
Joined: Thu Jul 28, 2011 8:35 am


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Majestic-12 [Bot], Yahoo [Bot] and 10 guests