-
Notifications
You must be signed in to change notification settings - Fork 131
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
glitch with search results & quickfix window #69
Comments
Can you post any |
I don't have any |
I’m seeing this issue too. I’ve managed to find what appears to be the culprit in a broad sense: using the jshint.vim plugin when the ag.vim search results include JavaScript files causes this behavior to occur. Note that this same behavior occurs with the ack.vim plugin & Having only the jshint.vim + ag/ack.vim plugins exposes the issue, and removing only the jshint.vim plugin resolves it. I’m not sure what in there is causing it, but it’s at least a starting point. |
It seems to be that jshint.vim runs when entering the buffer by default, so if the first result is a JavaScript file, then ag.vim opens it, jshint.vim runs and populates the quickfix list with its errors (with are none in most cases), overriding the quickfix list that ag.vim just populated. Set |
See rking/ag.vim#69 (comment) Basically this happens: - Search with :Ag/:Ack - Quickfix list populated with results - First result file opened in buffer - If that file is a JavaScript file, jshint.vim runs - jshint.vim populates the quickfix list with its error results, overriding those populated by ag.vim/ack.vim.
Nice find. Thanks for that. Fixed for me. |
Related to #57 (comment) and #58.
There is currently a bug that introduces some wonkiness with getting the search results to show within the quickfix window. Here is the issue:
:Ag example
the search is run (in the background), the first result is automatically opened, the quickfix window is not opened, and the status bar saysNo matches for "example"
.:Ag example
will now correctly open the quickfix window, but now when you load one of the results into a buffer witho
the quickfix window's results are cleared away.I am using Square's maximum-awesome plugin set (default bundles here) on OS X Yosemite with vim 7.4.52.
Here are some screenshots illustrating the above:
The text was updated successfully, but these errors were encountered: