-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
consult-flycheck #51
Comments
Yes, this would be great, combined with preview! I would be using something like this, I am sure. I added it to the wishlist for now, feel free to create a PR. |
@mpenet Already implemented this. This is great, I will use this from now on instead of the flycheck buffer I think! |
oh wow, you rock, thanks! |
Please test it thoroughly, that would be nice. The way I implemented this differs from the way counsel does it. If you jump back and forth between the minibuffer, the error line numbers will not be correct anymore in the minibuffer obviously, but the jumping locations will be updated. Ideally the line numbers should also be updated, but this is not so easy since it requires dynamic candidate support #10. If it turns out that the current implementation is not working so well, I can use a simpler implementation, which does not update the locations. |
Erm, this should be a separate |
Like, this immediately wouldn't pass MELPA review if submitted now. |
See #53 for the fix. |
To be honest I am not super happy with this. There is no such "consult" with which you can jump to flycheck errors. There is no integration of components going on, |
Think of it as organisation of code in the repo. I don't think you'd end up with "too many" actual packages, because the only separate packages would be for integration with other optional packages like
Yes.
Yes, that would also be cleaner, and quite feasible, looking at the code. A Basically anywhere you call functions (or read/write vars) declared in a non-core package, you should think about how to break that out. It's harder to write code that works like this, but the result is more idiomatic and extensible. |
Well, I already took care that the code is reasonably robust. As I said, the preview part is the most fragile part. Regarding the split I am probably rather doing the all or nothing thing. Splitting up everything cleanly or not doing the split at all. But there is also the usability problem - people are already complaining they needed selectrum, consult, embark, marginalia and orderless for example. Now if we tell them well you also need the N^2 integration libraries... |
I think that's pretty trivial tbh. The integration packages are listed next to each other, and I don't think it's as bad as N^2 in practice. |
This is just a suggestion:
Would you consider adding a consult-flycheck command that would cycle through the entries in
flycheck-list-errors
, with jump to selected file at error point?The text was updated successfully, but these errors were encountered: