FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

atom/autosave: Autosaves buffers when they lose focus · GitHub

This repository was archived by the owner on Dec 15, 2022. It is now read-only.
/ autosave Public archive
Atom and all repositories under Atom will be archived on December 15, 2022. Learn more in our official announcement

Autosave package

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.

Usage

package.json

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

package initialize

consumeAutosave({dontSaveIf}) {
  dontSaveIf(paneItem -> paneItem.getPath() === '/dont/autosave/me.coffee')
}

About

Autosaves buffers when they lose focus

Resources

Code of conduct

Contributing

Stars

62 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL