Make adding of Python import statements in Sublime easier.
Copy this folder to your Packages directory.
Add a keyboard short cut to invoke the function to your keyboard config:
{"keys": ["super+alt+i"], "command": "add_python_import_statement"},
Highlight the text you want behind the import
keyword and hit the keyboard
short cut. The import with be added at the beginning of the file.
- Improve documentation
- Make it a real sublime package
- Upload package to
- (Optionally) Sort imports after adding a new one
- Do not add duplicate imports
- Add ability for
from
imports