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 697
  • Win 334
  • Mac 234
  • Linux 129
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 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6
Windows 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 1 1 0 0 1 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1
Mac 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 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.