This is just somethingI am planning to have fun with. I forked a couple of files from the Zig Standard Library to expose configuration options. Only indents for now, but I’d love ideas and contributions.
// zift.zon
.{
.indent = .tabs,
// .indent = .{ .spaces = 4 }, // or any number up to 15.
}
It is currently configurable via a zift.zon file at working directory.
Oh this is fantastic, thank you! My only current gripe with zig fmt as a blind user is the forcing of four-space indents, because they’re multiple arrow presses. Thanks a ton for letting me use my “cursed” tabs!
Yes that’s write access that I needed (in my own fork of course), it just doesn’t want to push there and I gave up. I uploaded my fork on codeberg if you want to check it out (you could merge the commits manually from there if you are interested).
Note that much code is AI-written with some manual edits, so don’t just merge it blindly (if you want to merge something), I did some tests on my own code and it seems ok but I have to test it more.
Anyway for the license I think it should remain MIT, it’s derivative work, and could even get in the way for future changes in zig fmt. Not sure what you like about the Mozilla license.