ide-haskell icon indicating copy to clipboard operation
ide-haskell copied to clipboard

prettify deletes bookmarks

Open theGhostJW opened this issue 8 years ago • 3 comments

bookmarks in a file are deleted when prettify is invoked (windows).

to reproduce: add bookmarks -> prettify -> ()

theGhostJW avatar Oct 07 '16 06:10 theGhostJW

Since prettify rewrites whole file, I'm not sure how one would keep bookmarks. Line numbers can change, and there's no direct way of knowing what lines went where...

lierdakil avatar Oct 07 '16 18:10 lierdakil

If bookmarks are present insert one line comments above that line number in text pre-pettify then record remove and re set bookmarks after completion ???? would that work?

theGhostJW avatar Oct 08 '16 00:10 theGhostJW

Comments can change the result though, especially in case of stylish-haskell...

lierdakil avatar Oct 08 '16 00:10 lierdakil