jquery-tmbundle
jquery-tmbundle copied to clipboard
tab trigger after ")" in textmate 2
Karl, are you using Textmate 2? — Do you have any issues with tab trigger when trying to load the snippets?
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.
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 [email protected] 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
— Reply to this email directly or view it on GitHub.
Hi, just saying 'me too'. I have the same issue as Bruno. Thanks!
I also have the same issue like Bruno's error. How can I fix the bug? Anybody solved this problem?
Hi all. Thanks for the reports. I definitely see the issue (and now recall seeing it a while ago, too—one of the many frustrations that drove me away from TM2). It works if you're triggering off of some variable, too ( e.g. $foo.on
⇥ ).
If anyone has any information on fixing this, I'd love to hear it.
@bcorreia: I updated the issue title to be more descriptive. Hope that's okay.