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
added support for limiting ag search to file types #40
Conversation
The code is failing just one test case |
Thanks for the PR! This is an interesting idea. Have you noticed an increased jump speed? It looks like the |
adding I tried benchmarking the scripts but couldn't notice anything remarkable, maybe it will be prominent in a large folder. |
Awesome, thanks for fixing that test. Looks like there's just there's just a tiny merge conflict now. Should be trivial to fix because I think it happened when I resolved #38, which was just adding two new clojure extensions. Thanks again! |
I use dumb jump with JavaScript and AngularJS. One of the best things about it is that if I use dumb jump on a variable or function in an HTML template, it will find it in the associated JS file, which Tern cannot do. Will this change break that functionality? |
@scottaj Fantastic point. Thank you so much for bringing this up. Based on this and this. I think this PR would indeed break the functionality you're talking about. So @anuragpeshne I think the easiest solution is to wrap this in a flag like
Thanks again! |
@scottaj I had this case in my mind while limiting the search and hence we pass list of file types to ag. In case of Javascript we pass both @jacktasia There was a small bug while extracting |
@anuragpeshne Awesome, thanks! Let me play with this a bit before I merge it. |
@anuragpeshne Looks good to me. Thanks again! @scottaj I tested this PR jumping from HTML to javascript and it worked just fine. Please open an issue if you notice anything. Thanks again! |
while search for a certain function in a Python file, dumb-jump got me to function with same name in JavaScript file. Hence I added support for limiting search to file types which should speed up searching too.
Corrected the way ag file types are concatenated.