Skip to content

A Sublime Text 2/3 plugin for maintaining local history of files. [backup | open | compare | incremental diff]

License

Notifications You must be signed in to change notification settings

vishr/local-history

Repository files navigation

Local History

A Sublime Text 2/3 plugin for maintaining local history of files

Benefits

  • Every time you modify a file, a copy of the old contents is kept in the local history.
  • At any time, you can compare a file with any older version from the history.
  • View incremental diff of any file from the history.
  • It can help you out when you change or delete a file by accident.
  • The history can also help you out when your workspace has a catastrophic problem or if you get disk errors that corrupt your workspace files.
  • Each file revision is stored in a separate file (with full path) inside the .sublime/history folder of your home directory. e.g., /Users/vrana/.sublime/history/foo/bar/Oct.14.2012_14.48.47.history.py

Installation

With the Package Control plugin: The easiest way to install this plugin is through Package Control

Without Git: Download the latest source zip from github and extract the files to your Sublime Text "Packages" directory, into a new directory named Local History.

With Git: Clone the repository in your Sublime Text "Packages" directory:

git clone https://github.com/vishr/local-history.git "Local History"

The "Packages" directory location:

  • OS X: ~/Library/Application Support/Sublime Text 2/Packages/
  • Linux: ~/.Sublime Text 2/Packages/
  • Windows: %APPDATA%/Sublime Text 2/Packages/

Usage

Open | Compare | Incremental Diff

Delete All

Settings

{
	  "file_size_limit": 262144, // 256 KB
	  "history_retention": 30, // in days
	  "history_on_close": false // store history only on close
	  "history_path": "<path>" // path to store history, defaults to <HOME>/.sublime/history
}

About

A Sublime Text 2/3 plugin for maintaining local history of files. [backup | open | compare | incremental diff]

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages