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

Incremental​Diff

by AmjadHD ST3

A plugin to quickly diff two views through Sublime text's built-in Incremental Diff.

Labels diff, diff/merge

Details

Installs

  • Total 709
  • Win 340
  • Mac 238
  • Linux 131
Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6
Windows 1 0 0 1 0 0 1 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1
Mac 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0
Linux 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Incremental Diff

A plugin to quickly diff two views through Sublime text's built-in Incremental Diff.

usage

Usage

The plugin provides these commands: - set_reference_document: available in the context and tab context menus and the command palette, opens a quick panel with these options to set the contents as a reference for the incremental diff: * “Clipboard”: Use the clipboard. * “Open Views”: opens a quick panel with all suitable open views (excluding images and possibly binary files). * “File Dialog”: Pick a file from a file dialog (ST4 only).

  • set_reference_document_from_file: available in the Side Bar context menu, when exactly two files are selected, the file on which the menu is invoked will be opened if not already open, and the other file's contents will be used as a reference for incremental diff.

  • reset_reference_document: resets the reference document of the active view; you can bind it to a key, it's not bound by default.

  • toggle_all_diffs: bonus command, available in the context menu, shows/hides all diff hunks in the view.

Installation

Open the Command Palette, select Package Control: Install Package and search for IncrementalDiff.