Closed jonmagic closed 9 years ago
This uses editor.onDidStopChanging and underscores debounce function to implement autosave functionality similar to that in Notational Velocity and NValt.
editor.onDidStopChanging
debounce
I also disable the whitespace plugin during autosave so that it doesn't remove newlines when I'm trying to type.
Disabling the whitespace plugin when it is already disabled globally (in Atom settings) currently causes an error, see my response to #52.
This uses
editor.onDidStopChanging
and underscoresdebounce
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.