parinfer

henrik 2019-03-06T05:00:33.006900Z

I thought Cursive was struggling with smart mode?

cfleming 2019-03-06T07:48:20.008900Z

No, it works very well in Cursive now. There’s one change I made to accommodate IntelliJ’s restrictions, and in the end I actually like it better than the alternative - when you open a file, it doesn’t run paren mode automatically, instead it marks any problems and disables parinfer until you fix them. I actually think it’s a much better less-magic solution in the end.

1👍
pez 2019-03-06T08:37:06.009500Z

@cfleming: Yeah, that sounds like an awesome solution!

cfleming 2019-03-06T08:38:28.011Z

@pez It is, I like it a lot. Currently it’s file-wide, but I’m planning at some point to make it per-top-level-form, i.e. if indentation is incorrect in a particular TLF parinfer won’t work there until it’s fixed, but elsewhere in the file it will. But no-one has complained about the file-wide behaviour so far.