ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Local History

by vishr ST2/ST3

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

Details

  • 2016.09.12.07.22.25
  • vishr.​com
  • github.​com
  • 9 months ago
  • 1 hour ago
  • 5 years ago

Installs

  • Total 42K
  • Win 22K
  • OS X 13K
  • Linux 7K
May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10
Windows 16 32 25 23 16 11 35 25 39 36 29 19 16 28 36 35 39 39 13 19 35 28 37 36 27 22 22 39 38 33 30 25 6 17 33 33 42 27 37 10 12 37 24 36 23 28
OS X 8 13 18 10 6 9 14 12 16 21 11 5 10 12 12 21 16 9 8 8 11 9 12 20 15 16 16 25 28 34 21 12 11 12 14 18 10 16 31 12 5 9 14 20 15 7
Linux 6 7 10 9 3 3 8 14 11 12 14 4 3 12 14 11 8 11 3 3 5 9 12 13 9 6 7 17 18 14 11 10 5 9 4 12 9 14 11 7 4 12 17 12 14 12

Readme

Source
raw.​githubusercontent.​com

Local History

GitHub license Total downloads via Package Control Monthly downloads via Package Control

A Sublime Text package for maintaining a local history of files.

Benefits

  • Every time you modify a file, a copy of the old contents is kept in the local history when you:
    • open the file.
    • close the file.
    • and/or loose focus.
  • Available functions are:
    • file comparison of the open file and any of its older versions from the history.
    • incremental diff view.
  • Functions are available via:
    • the right-click context menu.
    • the Local History: ... commands from the command palette.
  • Local History helps you out when you change or delete a file by accident.
  • Local History can help you out when your workspace has a catastrophic problem or if you get disk errors that corrupt your workspace files.
  • File revisions are stored in separate files (with full path):

Installation

  • Via Package Control:
    • Install Package Control
    • Open the command palette (CtrlShift ⇧P)
    • Choose Package Control: Install Package
    • Search for Local History and select to install.
  • Clone the repo: git clone git://github.com/vishr/local-history.git "Local History" into your Sublime Text Packages directory.
    • via HTTPS: https://github.com/vishr/local-history.git
    • via SSH: git@github.com:vishr/local-history.git
  • current snapshot of master

Settings

Default settings

"history_retention": 0, // number of days to keep files, 0 to disable deletion
    "format_timestamp": "%Y%m%d%H%M%S", // file_name-XXXXXXXX.file_extension
    "history_on_close": true, // only save LocalHistory after closing a file, not when original was saved
    "history_on_focus_lost": false,
    "history_on_load": true,
//  "history_path": "",
    "portable": true,
    "file_size_limit": 4194304 // 4 MB

Local History path

Local History's target directory for file revisions can be set as follows:

  • For "portable": true, Local History will save to Sublime Text/Data/.sublime/Local History/... wherever Sublime Text is installed.
  • Setting "portable": false will change the target folder to the ~/.sublime/Local History/... subfolder of your user directory.
    • If "portable": false changing "history_path": "..." will give you the option to change the target directory to a custom path.

Usage

Context Menu

  • Functions are available via:
    • the right-click context menu.
    • the Local History: ... commands from the command palette.

Tools Menu

  • To permanently delete all history files, choose Tools > Local History > Delete Local History > Permanently delete all