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

# Modific

ST2/ST3

Highlight lines changed since the last commit (supports Git, SVN, Bazaar, Mercurial and TFS) / ST2(3) plugin

## Details

• 2019.09.19.13.24.39
• github.​com
• github.​com
• 2 months ago
• 35 minutes ago
• 7 years ago

## Installs

• Total 51K
• Win 23K
• OS X 17K
• Linux 11K
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 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 0 1 4 5 2 3 6 2 3 10 5 5 6 7 5 3 6 6 4 7 6 7 3 14 5 3 3 3 1 8 5 6 2 2 7 4 7 2 3 1 4 5 5 5 5 5 1 2 2 3 1 0 1 2 1 5 2 2 0 6 2 0 3 2 0 1 2 0 1 2 1 1 0 2 4 3 5 1 2 2 2 4 1 2 1 0 0 4 0 1 2 2 0 1 2 0 1 1 1 0 2 1 4 0 2 0 0 1 1 2 0 1 2 0 1 1 0 1 2 2 1 2 3 2 0 0 1 2 2 0 1 2 0 2 3 4 0 2

Source
raw.​githubusercontent.​com

# Modific

Modific is a ST2(3) plugin for highlighting lines changed since the last commit (you know what I mean if you used Netbeans).

For now it supports Git, SVN, Bazaar, Mercurial and TFS.

## Install

The easiest way to install is through Package Control.

Once you install Package Control, restart ST3 and bring up the Command Palette (Ctrl+Shift+P on Linux/Windows, Cmd+Shift+P on OS X). Select “Package Control: Install Package”, wait while Package Control fetches the latest package list, then select Modific when the list appears. The advantage of using this method is that Package Control will automatically keep Modific up to date with the latest version.

Or you can download the latest source from GitHub and copy the Modific folder to your Sublime Text “Packages” directory.

Or clone the repository to your Sublime Text “Packages” directory:

git clone git://github.com/gornostal/Modific.git


The “Packages” directory is located at:

• OS X:

~/Library/Application Support/Sublime Text 3/Packages/

• Linux:

~/.config/sublime-text-2/Packages/

• Windows:

%APPDATA%/Roaming/Sublime Text 3/Packages/


Please, make sure your VCS (version control system) binaries is in the PATH (especially if you are on Windows).

To do that on Windows, open Control Panel -> System -> Advanced system settings -> Environment variables -> System Variables, find PATH, click “Edit” and append ;C:\path\to\VCS\binaries for every VCS you will use (or make sure it's already there).

## Features / Usage

Highlight changes (when file is saved)

Show diff Ctrl+Alt+D on Linux/Windows and OS X

Preview of the commited code for current line Ctrl+Alt+C on Linux/Windows, Ctrl+Super+C on OS X

Revert modification Ctrl+Alt+R on Linux/Windows, Ctrl+Super+R on OS X

This command reverts modifications if your cursor stays on modified line (or if on group of lines, then whole group will be reverted)

View uncommitted files in a quick panel Ctrl+Alt+U on Linux/Windows, Ctrl+Super+U on OS X

Go through changed lines Ctrl+Shift+Page Up(Down)

For those who expected to see a clone of Netbeans feature - unfortunately, with existing Sublime Text API that is impossible :(

Discussion on the forum

Toggle highlighting on/off Ctl+Shift+h, Ctrl+Shift+l

## Configuring

Open Prefrences -> Package Settings -> Modific -> Settings - Default and look for available settings.

If you want to change something, don't do it in this file. Open Preferences -> Package Settings -> Modific -> Settings - User and put there your configuration.

You can configure is a type of icon (dot, circle or bookmark) and path for your VCS binaries (or leave them as is, if you have them in your PATH). It's also possible to set priority for VCS used (when you have more than one simultaneously) by reordering their definitions.

If some sacred punishment has been bestowed upon you, and you have no other choice but to use OS, where console has non-UTF8 encoding, you can set console_encoding parameter to the name of your beloved encoding. This parameter is specifically designed for Windows XP users, who have their git repositories in folders with cyrillic path. Since russian XP uses CP1251 as default encoding (including console), VCS diff commands will be encoded appropriately, when using this parameter.

If you use different than the default theme, you can customize colors of bullets on the gutter by adding this chunk of code to your theme.

### SVN users

If you are using SVN 1.7 you may want to turn on option svn_use_internal_diff.
This instructs Subversion to use its built-in differencing engine despite any external differencing mechanism that may be specified for use in the user's runtime configuration.

### Line endings

Modific takes into account default_line_ending setting that you can change in your “User Settings” (or per project/file basis).
It determines what characters to use to join lines when Modific does “Revert change” action.
Valid values: system (OS-dependent), windows (CRLF) and unix (LF).