atom/autosave

Add option: Only when under version control

Closed this issue · 1 comments

eode commented

Prerequisites

Description

New feature: Auto-save distinguishes between files that are under version control and those that aren't.

Feature request

Current Behavior: No distinction is made between versioned and unversioned files.

Desired Behavior:

  • New option in autosave config:
    [ ] Only if file is under version control
  • New behavior when option is checked:
    If a file is not under version control, it is not autosaved.
rsese commented

Thanks for the suggestion! I think this is basically a duplicate of issues like #64 where a selective autosave could be useful for some people. As mentioned in #64 (comment), this package exposes a service so that people can create packages to skip saving particular files so different options don't need to be added to autosave (also, the package mentioned in that issue might have the functionality you want?).