-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Support for EditorConfig #279
Comments
While we do that, I think we want to have a logo first to be able to put our editor in editorconfig.org Should we use https://github.com/mrandri19/rust-editorconfig? |
It doesn't seem to be maintained so we might have to pull it in and make some changes. |
Maybe we can take over the maintainership of the crate? |
There's an open issue for that too (offering maintainership): mrandri19/rust-editorconfig#13 |
I wonder if we could just attempt to parse it via TOML, it shares some similarities with INI. |
There's also serde_ini, which seems like a reasonable way to go since we already have the serde dependency anyway. |
It might just make sense to adapt https://github.com/zonyitoo/rust-ini. It seems like the only difference between Actually, I wonder if we need to do that at all and can just use it directly. Edit: |
Dropping this here for future reference if we go for the manual implementation using an ini crate route, there is an |
Worst case scenario, we can just bind to https://github.com/editorconfig/editorconfig-core-c. But I don't think we'll need to. |
What is the status of this feature's implementation? If there is a lack of manpower for it, then I'd be happy to contribute some. |
Feel free :) I had some IRL things happen that prevented me from tackling this. |
Is there a preference for wrapping editorconfig-core-c or writing something new in pure Rust? The spec seems simple enough for now. |
https://github.com/zonyitoo/rust-ini seems to be able to parse it just fine. |
I'll take that as a preference for writing a pure Rust implementation. That was my preference as well. 👍 rust-ini appears unfit for this purpose, specifically because its section parser ends parsing at the first Either way, I think the largest challenge in writing a new Editorconfig implementation will be the globing behavior. From there, integrating it doesn't seem particularly involved:
|
It's been just over two weeks, so here's a status update. I've been writing a new EditorConfig core. At the time of writing, it passes 161 of the 196 core tests, and some of the glob-related code quality is not what I'd like it to be (can't use the Once it passes all of the tests, I'd like to publish a |
I'll add that .editorconfig files also aren't highlighted at the moment, not sure if that's planned as a part of this issue |
It already has a PR and mention to this PR. #8076 |
Highlighting temporarily added as INI in #8308 |
Damn, I hope this will do the cut for the next release! |
Fingers crossed, this would be a very useful feature! |
so no .editorconfig support until now for helix ? |
In #239 it was mentioned that support for EditorConfig would be nice, and it seemed like there was general agreement that we want to do that at some point.
I'm opening this issue just so it stays on our radar.
The text was updated successfully, but these errors were encountered: