News for hackers. Stuff that matters.
Re:I Love Go; I Hate Go by millstone on Tuesday August 02, 2016 @03:15AM (#12208297)
My question was, since goimports modifies your document (and gofmt even more so), is your undo stack preserved across saves? If so, how?
Re:I Love Go; I Hate Go by _asummers on Tuesday August 02, 2016 @08:08AM (#12209292)
In Eclipse, this is true. The import was considered an "action" that got put into your undo stack. It was just triggered by the editor, not you.
Re:I Love Go; I Hate Go by buro9 on Tuesday August 02, 2016 @03:17AM (#12208307)
That's a question for your text editor.

I use Sublime Text 3 with GoSublime and have noticed that the undo stack is just my changes (makes sense, the goimports is an external process), but that's cool because any CTRL+S is going to trigger goimports and so the correction of the imports is invisible and always there.

Re:I Love Go; I Hate Go by Leon on Tuesday August 02, 2016 @09:58AM (#12209946)
I believe it has worked well for me for undo. However some other Atom formatters have broken my undo in weird ways, namely the formatter for Node JS I had turned on to auto format on saves. I had to turn it off.