/P4Gutter

Sublime Text 3 plugin to display Perforce diffs in the gutter.

Primary LanguagePythonMIT LicenseMIT

P4Gutter


Sublime Text 3 plugin to display Perforce diffs in the gutter. See additions, deletions, and modifications.

Note

This project is not actively maintained. I no longer have access to a P4 server to test against.

Looks like

screenshot

Installation

Look for the P4Gutter package in Sublime Package Control.

Setup

  • You'll need the Perforce command line client (Perforce Downloads).
  • Edit settings from Preferences > Package Settings > P4Gutter > Settings - User.
  • Optionally, create .p4_workspace files, containing the name of the workspace, in your workspace root directories.

Usage

Gutter Icons

The gutter is updated on file open and save events.

Additional Commands

Annotations
This opens a new file to display Perforce annotations with change list number and user name prefixed to each line. Run the P4 Annotations command from the Sublime command palette; or you can add a key binding to the p4_annotation command in your "Key Bindings - User" file, like:

    { "keys": ["super+shift+a"], "command": "p4_annotation" }

License

MIT Licensed

Thanks

Icons from GitGutter by JD Isaacks.