Highlight lines changed since the last commit (supports Git, SVN, Bazaar, Mercurial and TFS) / ST2(3) plugin
- Total 44K
- Win 19K
- OS X 15K
- Linux 10K
|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||Dec 5|
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.
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:
~/Library/Application Support/Sublime Text 3/Packages/
%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
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)
Go through changed lines
For those who expected to see a clone of Netbeans feature - unfortunately, with existing Sublime Text API that is impossible :(
Toggle highlighting on/off
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.
If you are using SVN 1.7 you may want to turn on option
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.
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.
windows (CRLF) and
@beefsack for purchasing a license
Released under the WTFPLv2.