radian-software / apheleia

🌷 Run code formatter on buffer contents without moving point, using RCS patches and dynamic programming.
MIT License
558 stars 75 forks source link

Does apheleia preserve mark as well as point? #197

Open SohumB opened 1 year ago

SohumB commented 1 year ago

It seems like it doesn't, which is occasionally disruptive. If it doesn't, I'd be happy to look into contributing this functionality?

raxod502 commented 1 year ago

I had a look through, and yep, you're right - I don't think this was ever implemented. I think it should not be too hard to preserve mark, or indeed all marks in the buffer. Whoops!

SohumB commented 1 year ago

Opened #198 !