Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tab trigger after ")" in textmate 2 #24

Open
bcorreia opened this issue Feb 12, 2013 · 6 comments
Open

tab trigger after ")" in textmate 2 #24

bcorreia opened this issue Feb 12, 2013 · 6 comments

Comments

@bcorreia
Copy link

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

@kswedberg
Copy link
Owner

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
Copy link
Author

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 <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.


Reply to this email directly or view it on GitHub.

@blokezero
Copy link

Hi, just saying 'me too'. I have the same issue as Bruno. Thanks!

@nintynin
Copy link

I also have the same issue like Bruno's error. How can I fix the bug? Anybody solved this problem?

@kswedberg
Copy link
Owner

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.

@kswedberg
Copy link
Owner

@bcorreia: I updated the issue title to be more descriptive. Hope that's okay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants