All Projects → jamesfzhang → Auto Save

jamesfzhang / Auto Save

Licence: mit
Automatically saves the current file after every modification

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Auto Save

Sublime Text 2 User Settings
💾 2011–2013 — My user settings for Sublime Text 2
Stars: ✭ 45 (-47.67%)
Mutual labels:  sublime-text
Sublime Phpunit
PHPUnit support for Sublime Text
Stars: ✭ 63 (-26.74%)
Mutual labels:  sublime-text
Ecmascript Sublime
ECMAScript/JavaScript syntax (ES2015-ES2018, JSX, template highlighting, etc) with absurdly specific scopes
Stars: ✭ 78 (-9.3%)
Mutual labels:  sublime-text
Svg Snippets
🔰 A set of custom SVG snippets for Sublime Text 2/3
Stars: ✭ 50 (-41.86%)
Mutual labels:  sublime-text
Sublimephpcsfixer
Run php-cs-fixer code formatter to format php code from your favorite text editor
Stars: ✭ 63 (-26.74%)
Mutual labels:  sublime-text
Dotfiles
What tools and plugins I use for web development?
Stars: ✭ 73 (-15.12%)
Mutual labels:  sublime-text
Lsp
Client implementation of the Language Server Protocol for Sublime Text
Stars: ✭ 1,018 (+1083.72%)
Mutual labels:  sublime-text
Laravel Whoops Editor
Laravel Whoops Editor helps to open your code editor from exception stack trace.
Stars: ✭ 83 (-3.49%)
Mutual labels:  sublime-text
Packagesync
Sync sublime text packages & user settings across devices.
Stars: ✭ 63 (-26.74%)
Mutual labels:  sublime-text
Goguru
GoGuru is a Golang plugin for SublimeText 3 that integrates the Go guru tool.
Stars: ✭ 78 (-9.3%)
Mutual labels:  sublime-text
Sublimelinter Contrib Xo
SublimeLinter plugin for XO
Stars: ✭ 53 (-38.37%)
Mutual labels:  sublime-text
Sublime Text Plugins For Frontend Web Development
📝 Collection of plugins for Frontend Web Development
Stars: ✭ 1,127 (+1210.47%)
Mutual labels:  sublime-text
Consolewrap
This plugin helps you to work easily with log statements
Stars: ✭ 75 (-12.79%)
Mutual labels:  sublime-text
Sublime Php Snippets
PHP snippets for Sublime Text.
Stars: ✭ 50 (-41.86%)
Mutual labels:  sublime-text
Guides
A miscellania of how-to's, references, and style guides for stuff I'm into.
Stars: ✭ 82 (-4.65%)
Mutual labels:  sublime-text
Codeatlassublime
Code relationship graph visualization plugin of sublime editor
Stars: ✭ 44 (-48.84%)
Mutual labels:  sublime-text
Vuejs Snippets Sublime
Vuejs Snippets for Sublime Text
Stars: ✭ 70 (-18.6%)
Mutual labels:  sublime-text
Sublimechef
A Sublime Text 2 Package for authoring Chef related files
Stars: ✭ 85 (-1.16%)
Mutual labels:  sublime-text
Sublime Coffee Compile
Preview compiled CoffeeScript in your editor!
Stars: ✭ 82 (-4.65%)
Mutual labels:  sublime-text
Colorhighlight
🎨 Lightweight Color Highlight colorizer for Sublime Text
Stars: ✭ 76 (-11.63%)
Mutual labels:  sublime-text

auto-save

A Sublime Text plugin that automatically saves the current file after every modification.

Synopsis

In the occasion where you'd want Sublime Text to save the current file after each change, you can use this plugin.

Demo

Image

Installation

From Package Control

auto-save is available through Sublime Package Control and is the recommended way to install.

From Github

Alternatively, you may install via GitHub by cloning this repository into the Packages directory under Sublime Text's data directory:

On Mac:

cd ~/Library/Application Support/Sublime Text 3/Packages
git clone https://github.com/jamesfzhang/auto-save.git

Usage

By default, auto-save is disabled because it is a fairly invasive plugin. To make it less invasive, you can instruct it to only auto-save changes to the file that is active when you turn on auto-save. In this mode, it will ignore changes to all other files.

To run auto-save whenever a file is modified, set "auto_save_on_modified": true in your user settings. To ignore certain files, set auto_save_ignore_files to a list of file suffices like [".yml", "package.json"].

You can also instruct it to auto-backup the file instead of auto-saving it. The backup gets created in the same directory as its source file. The backup file takes the same name as its source file, with the string .autosave inserted directly before the file extension. When auto-save is disabled, the backup file is deleted.

There are two ways to enable it. You can press Command + Shift + P to bring up the Command Palette, and search for AutoSave. Here, there are 3 options:

  • Toggle AutoSave: all files
  • Toggle AutoSave: current file only
  • Toggle AutoSave Backup: current file only

Alternatively, you can bind commands to turn the plugin on or off. For example, to toggle auto-save for all files, open "Preferences / Key Bindings - User" and add:

{ "keys": ["ctrl+shift+s"], "command": "auto_save" }

To toggle it for only the current file, and instruct to make a backup of the file instead of saving the file itself, you could add:

{ "keys": ["ctrl+shift+s"], "command": "auto_save", "args": {"all_files": false, "backup": true} }

This key bindings file takes an array of key bindings so please ensure that this key binding, along with any existing ones, are properly wrapped in [].

With this setting, pressing Ctrl + Shift + S will turn the plugin on or off. A status message will be displayed in the Sublime Status Bar each time the plugin is turned on or off.

By default, auto-save debounces "save" events by 1 second. For fast typers, this improves performance dramatically such that "save" events are not called constantly, just when it matters.

License

MIT-License.

Author

auto-save was created and maintained by James Zhang. Give him a shoutout at @jamesfzhang if you have comments or questions.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].