kswedberg / jquery-tmbundle

TextMate bundle for jQuery
http://www.learningjquery.com
561 stars 228 forks source link

tab trigger after ")" in textmate 2 #24

Open bcorreia opened 11 years ago

bcorreia commented 11 years ago

Karl, are you using Textmate 2? — Do you have any issues with tab trigger when trying to load the snippets?

kswedberg commented 11 years ago

Hi there. I don't use TextMate 2 very often, but when I do, I don't have issues with jQuery tab triggers. Can you be more specific about what context you're in when you experience the problem?

Actually, I haven't figured out how to make tab triggers work from within a <script> tag when I'm in the context of an html document. TextMate 2 changed the way nested grammars work, and I never found documentation that explained how to make bundles work within this sort of "nested" context. If you have any information about that, I'd love to know.

bcorreia commented 11 years ago

Karl, Thanks for the follow up! So, let me explain: If you type .on method for example, then hit tab, it works as expected, and the same is true for every other snippet in your bundle. — However, if you have a selector before the method, for example $(".foo").on then hit the tab, it won’t work! and the same is true for every other snippet.

Also, I want to take this chance to thank you for teaching jQuery, and compiling this awesome bundle! You are a good man : )

Bruno Correia +1. 619. 518. 2609

On Feb 12, 2013, at 7:44 AM, Karl Swedberg notifications@github.com wrote:

Hi there. I don't use TextMate 2 very often, but when I do, I don't have issues with jQuery tab triggers. Can you be more specific about what context you're in when you experience the problem?

Actually, I haven't figured out how to make tab triggers work from within a Githubissues.

  • Githubissues is a development platform for aggregating issues.