Andrew Baxter

Results 189 comments of Andrew Baxter

I think that's probably a question for the cargo fmt people, but my guess is that it wouldn't be accepted since they've previously expressed (IIRC) no interest in this sort...

Ah thanks for the answer! I've moved on to another shell, but for new users in the future: 1. Not using `use edit` breaks the pattern of other modules and...

Thanks for the suggestions! Running in systemd has a lot of consequences on how the process runs, and complicates cleanup (and can leave orphans) if the caller dies unexpectedly, the...

Can you give me an example? IIUC, what genemichaels does in order to format code is 1. use `syn` to parse the text as a `File` AST 2. Convert the...

Are you saying you want to format everything except that part in the middle? There's #71 ~but I think that was more about the opposite, formatting only a specific section...

That's a good point. I'll split #71 maybe to make this more clear. TBH I think not formatting a chunk is easier than the opposite, formatting only a chunk, so...

Yeah, right. I think it's a fairly different problem... I haven't actually tried it so maybe there's a clean way to do it but at first glance it seemed tricky....

Oh nice, yeah I see. So basically wrapping it into something that's okay at the root. And that's a good point, macros already try a couple contexts to get reasonable...

Yeah, it was what you were suggesting (more or less) but just without injecting text to fake the context. I didn't think about editors and partial formatting... I mean, I...