Edit file state programmatically?


#1

I was wondering whether it’s possible to mark a file as saved or unsaved (“dirty”) through the Atom API. A while back I created a package that let’s me edit documents that are not saved as files. It’s all working fine, but one minor annoyance is that after using my own save routine (“save to database”), Atom still regards the document as unsaved.


#2

You may be able to implement a new editor.isModified() for your package’s documents, which means you may have to extend TextEditor to do so. Aside from that, I’m drawing a blank.