Skip to content

fastmonkeys/betterimportpackages

Repository files navigation

Better Import Packages

Sublime Text 3 plugin that helps with Python imports. It scans the open folders for imports that were used previously and uses them to write the correct import. Please note that the plugin is just a prototype at this stage.

How to use

  1. Select the class or function you wish to import (e.g. UserPhoto) and either right-click "Add import" or use the keybinding Cmd+Shift+I. Screenshot

  2. The import is then added to top of the file. Screenshot

How to install

  1. Open your terminal. At first you'll have to install ack.
  • For Mac users: $ brew install ack
  • For Debian/Ubuntu users: $ sudo apt-get install ack
  1. Clone the repository to the Sublime Text Packages folder.
$ cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/
$ git clone https://github.com/fastmonkeys/betterimportpackages BetterImportPackages

About

Sublime Text 3 Plugin that helps with Python imports

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published