Atom package for maintaining a local history of files (history of your changes to the code files).
Need a new maintainer: I switched to VScode editor, I do not use Atom anymore. Because of this, it is not practical for me to maintain this package.
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... :fist:
.atom/local-history
directory of your home directory.
e.g: /home/nicolas/.atom/local-history/var/www/my-great-project/lib/2014-06-21_17-05-43_utils.js
apm install local-history
Or Settings ➔ Packages ➔ Search for local-history
Show the history of the current file:
Then, select the revision to open in another tab
local-history:current-file
show local history of current file.local-history:difftool-current-file
Open the current file and a given revision file with your defined diff tool (see difftoolCommand).local-history:purge
purge the expired revisions (see daysLimit).Path where the revision files are stored.
By default in your Atom (home) directory : .atom/local-history.
Automatic purge (triggered, max 1 time per day).
Disabled by default. You must check to enable this option.
File size limit, by default: 262144 (256 KB). The files heavier than the defined size will not be saved.
Days retention limit, by default: 30 days by file. The oldest files are deleted when purging (local-history:purge).
A custom command to open your favorite diff tool, by default: meld.
Example:
meld "{current-file}" "{revision-file}"
{current-file}
is the placeholder replaced automatically by the path of the current file.{revision-file}
is the placeholder replaced automatically by the path of the revision file selected.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"
Show the errors of the diff tool command. If checked, the errors are displayed in a message panel.
Enabled by default.
MIT (c) 2013, Nicolas Tallefourtane.
Nicolas Talle |