Skip to content
Autosaves buffers when they lose focus
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
appveyor.yml AppVeyor should test against stable & beta Dec 14, 2016

Autosave package

OS X Build Status Windows Build Status Dependency Status

Autosaves editor when they lose focus, are destroyed, or when the window is closed.

This package is disabled by default and can be enabled via the autosave.enabled config setting or by checking Enabled in the settings for the autosave package in the Settings view.

Service API

The service exposes an object with a function dontSaveIf, which accepts a callback. Callbacks will be invoked with each pane item eligible for an autosave and if the callback returns true, the item will be skipped.



"consumedServices": {
  "autosave": {
    "versions": {
      "1.0.0": "consumeAutosave"

package initialize

consumeAutosave({dontSaveIf}) {
  dontSaveIf(paneItem -> paneItem.getPath() === '/dont/autosave/')
You can’t perform that action at this time.