seongjaelee / nvatom

nvatom (unpublished from atom.io)
MIT License
75 stars 14 forks source link

Auto save document 1 second after finishing typing #10

Closed jonmagic closed 9 years ago

jonmagic commented 9 years ago

This uses editor.onDidStopChanging and underscores debounce function to implement autosave functionality similar to that in Notational Velocity and NValt.

I also disable the whitespace plugin during autosave so that it doesn't remove newlines when I'm trying to type.

hbuschme commented 8 years ago

Disabling the whitespace plugin when it is already disabled globally (in Atom settings) currently causes an error, see my response to #52.