local-history

Maintaining local history of files (history of your changes to the code files).

Nicolas Tallefourtane

95,295

200

Bug Reports

4.3.1

GitHub

Local History for Atom

Atom package for maintaining a local history of files (history of your changes to the code files).

Why?

For maintaining a history of the files revisions like mostly code editors:

Especially, I need an automated backup of my work to save me from stupid accidents... ✊

Benefits

Install

apm install local-history

Or Settings ➔ Packages ➔ Search for local-history

Usage

Show the history of the current file:

Contextual menu

Commands

Then, select the revision to open in another tab

Revisions list

command

Settings

historyStoragePath

Path where the revision files are stored.
By default in your Atom (home) directory : .atom/local-history.

AutoPurge

Automatic purge (triggered, max 1 time per day).

Disabled by default. You must check to enable this option.

fileSizeLimit

File size limit, by default: 262144 (256 KB). The files heavier than the defined size will not be saved.

daysLimit

Days retention limit, by default: 30 days by file. The oldest files are deleted when purging (local-history:purge).

difftoolCommand

A custom command to open your favorite diff tool, by default: meld.

Example:

meld "{current-file}" "{revision-file}"

The actual command generated will be something like this:

meld "/var/www/my-project/my-current-file.js" "/home/nicolas/.atom/local-history/var/www/my-project/2014-07-08_19-32-00_my-current-file.js"

difftoolCommandShowErrorMessage

Show the errors of the diff tool command. If checked, the errors are displayed in a message panel.

Enabled by default.

LICENSE

MIT (c) 2013, Nicolas Tallefourtane.

Author

Nicolas Tallefourtane - Nicolab.net
Nicolas Talle
Make a donation via Paypal