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

Mr​Igor

by tisto ST3 MacLinux

Sublime Text 3 plugin for mr.igor.

Details

  • 2014.05.16.09.35.45
  • github.​com
  • github.​com
  • 10 years ago
  • 1 hour ago
  • 10 years ago

Installs

  • Total 58
  • Win 0
  • Mac 43
  • Linux 15
Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13
Windows 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 0 0 0 0 0 0 0
Mac 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 0 0 0 0 0 0 0
Linux 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 0 0 1 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Sublime Text 3 plugin for mr.igor

MrIgor is a Sublime Text 3 plugin for mr.igor.

mr.igor is an extension to pyflakes (a static code analysis tool for Python), that will learn where you import things from, and then automatically fill in missing imports from the place they are most often imported.

Prerequisits

Install mr.igor on your system:

$ pip install mr.igor

If you decide to install mr.igor in a different location (e.g. in a virtual environment), you have to tell the plugin where to find the igor bin file by selecting "Preferences" -> "Settings - User" in your Sublime Text menu and then add a line with the path to mr.igor, e.g.:

{
  "mrigor_path": "/home/timo/mrigor/bin/igor",
}

Installation

Using Package Control

  • Open Sublime Text Command Pallete and type "install" with no quotes
  • Select "Install Package" from the dropdown box
  • Type "MrIgor" with no quotes, select it and press <ENTER>

Using git

Go to your Sublime Text 3 packages directory and clone the repo:

git clone https://github.com/tisto/MrIgor

Usage

If you save a Python file in Sublime Text, "igor --reap" will be run to reap the contents of the file (adding the imports of that file to mr.igor's database).

Use CMD+SHIFT+I to run the current file through mr.igor to add missing imports.

Credits

mr.igor has been written by David Glick.

This package is based on the Sublime Text 2 'SublimeTextIgorPlugin' by Martin Aspeli (https://github.com/optilude/SublimeTextIgorPlugin).