If I've got a list of references then there's a decent chance that I'll want to cycle through them.
Suggest using the quickfix list on the grounds that: that's what cscope and YouCompleteMe both do in analogous situations, so it's probably what people are used to.
It's not a good idea. The quickfix list can be used by ALE for displaying problems, and the quickfix list is used by many other plugins for many other reasons. It's better to use a custom buffer in the preview window to avoid any conflicts.
What could be proposed instead is adding some commands for cycling through the results of the last list of references that were fetched. That way you could cycle through references and also use the quickfix list for displaying problems at the same time.
A command for cycling through the references would do, I guess. Shall we just re-purpose this issue or would you like a fresh one?
I'm not convinced you're right about using the quickfix list being a bad idea though - so I'm going to take a slightly fuller run at persuading you.
Perhaps, at least, an option to use the quickfix list for this purpose??
Okay, I think ALE can support two features.
You could enable both the options for showing problems and references in the quickfix list, but then that will be your problem. The command for jumping around references should be designed so it always works, even when the references are put in the quickfix list.
If someone wants to create a pull request for implementing this, go for it. I might implement this eventually if it seems like it's fun enough.
I had thought about creating this same GH issue in the past, but I understand the benefits of keeping a separate list and work was already done to achieve that. However, I'd also prefer ALEFindReferences results to be in a QuickFix list:
It might be good to add a command for re-opening the preview window too, similar to how Unite.vim let's you re-open search results.
FWIW I've filed a patch that fixes this if anyone's desperate: https://github.com/w0rp/ale/pull/2644
I would LOVE if there were commands for populating certain output into locationlist or quickfix on demand. So ALEFindReferences would go to ALE's preview window, but you could also have ALEFindReferencesQF ALEFindReferencesLL (or some other means of accomplishing this if that's not clean).
I have plenty customization for how I use ll/qf in my workflow and it's important. As long as you are not automatically setting list content without consent, which you shouldn't be unless opted-in, I agree, just let us manage what we put in our lists.
Just a hint for those (like me) longing for this feature: As a workaround, it's possible to use this workflow:
:ALEFindReference to open ALE's preview window:cb (short for :cbuffer) to read the content of ALE's preview window into the quickfix list:cn):copen to open and inspect the quickfix list
Most helpful comment
Just a hint for those (like me) longing for this feature: As a workaround, it's possible to use this workflow:
:ALEFindReferenceto open ALE's preview window:cb(short for:cbuffer) to read the content of ALE's preview window into the quickfix list:cn):copento open and inspect the quickfix list